詹金斯:步骤和步骤之间的区别

  • 本文关键字:区别 之间 金斯 jenkins
  • 更新时间 :
  • 英文 :


这里提到的step有什么区别 https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#step-general-build-step

以及此处提到的steps https://jenkins.io/doc/pipeline/tour/running-multiple-steps/

steps是一组在stage内要做的事情。steps内的每条指令都是一个step

下面是一个示例:

pipeline {
    agent any
     stages {
         stage('FirstStage') {
             steps { 
                 echo 'Hello World'       // step
                 echo 'Hello World again' // another step
             }
         stage('SecondStage') {
             steps { 
                 echo 'Hello World'       // yet another step
                 echo 'Hello World again' // another step again
             }
         }
     }
 }
">

general-build-step"中的步骤是一个通用术语,就像在Jenkins中做一些任务一样。

https://jenkins.io/doc/pipeline/tour/running-multiple-steps/中的步骤是"步骤"的特定用法。

所以在我看来,对不起,我认为找出它们的区别是没有意义的。

最新更新