1

我编写了一个管道脚本,在控制台输出中我还需要 createhosts 日志输出,而不是显示内部版本号。

脚本:

pipeline {
    agent none
    stages {
        stage('create hosts') {
            steps {
                echo "Hello! , This build for create VMs "
                build job: 'createhosts',
                 parameters: [
                *********
        ********* some parameters
        ]
            }

        }
        stage ('CD job ') {
            steps {
                echo "This build for configure VMs "
                build job: 'CD'
            }
        }
        stage ('Delete VMs') {
            steps {
                echo "This job is required a host file as input for approval to Delete VMs"
                input "approve for deletion"
        build job: 'delete_vms'
        }
        }
    }
}

单击此处获取输出图像

4

0 回答 0