Answers for "jenkins pipeline global variables define and usage"

0

jenkins pipeline global variables define and usage

pipeline {
    agent {
        label '!windows'
    }

    environment {
        DISABLE_AUTH = 'true'
        DB_ENGINE    = 'sqlite'
    }

    stages {
        stage('Build') {
            steps {
                echo "Database engine is ${DB_ENGINE}"
                echo "DISABLE_AUTH is ${DISABLE_AUTH}"
                sh 'printenv'
            }
        }
    }
}
Posted by: Guest on April-20-2022

Code answers related to "jenkins pipeline global variables define and usage"

Browse Popular Code Answers by Language