这里提到的step
有什么区别https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#step-general-build-step
和步骤
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
}
}
}
}
关于 Jenkins :步骤和步骤之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54555305/