Answers for "restrict where this project can be run jenkins pipeline"

0

restrict where this project can be run jenkins pipeline

pipeline {
    agent none
    //agent { label 'X' }

    stages {
        stage('Build') {
            agent { label 'slave-node​' }
            steps {
                echo 'Building..'
                sh '''
                '''
            }
        }
    }

    post {
        success {
            echo 'This will run only if successful'
        }
    }
}
Posted by: Guest on May-11-2021

Code answers related to "restrict where this project can be run jenkins pipeline"

Browse Popular Code Answers by Language