Answers for "jenkins when expression"

0

jenkins when expression

pipeline {
    agent any
    stages {
        stage('Example Build') {
            steps {
                echo 'Hello World'
            }
        }
        stage('Example Deploy') {
            when {
                branch 'production'
            }
            steps {
                echo 'Deploying'
            }
        }
    }
}
Posted by: Guest on October-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language