Jenkins 詹金斯:台阶和台阶的区别

Jenkins 詹金斯:台阶和台阶的区别,jenkins,Jenkins,这里提到的步骤之间有什么区别 这里提到的步骤步骤是在阶段中要做的一组事情。步骤中的每条指令都是步骤 以下是一个例子: pipeline { agent any stages { stage('FirstStage') { steps { echo 'Hello World' // step echo 'Hello World again' // another s

这里提到的
步骤
之间有什么区别


这里提到的
步骤
步骤
是在
阶段
中要做的一组事情。
步骤
中的每条指令都是
步骤

以下是一个例子:

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
            }
        }
    }
}

步骤
是要在
阶段
内完成的一组事情。
步骤
中的每条指令都是
步骤

以下是一个例子:

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
            }
        }
    }
}