这里提到的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/中的步骤是"步骤"的特定用法。
所以在我看来,对不起,我认为找出它们的区别是没有意义的。