Tuesday, November 13, 2018

jenkins pipeline add env variables

jenkins pipeline add env variables:


Jenkinsfile (Declarative Pipeline)
pipeline {
    agent any

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

    stages {
        stage('Build') {
            steps {
                sh 'printenv'
            }
        }
    }
}



Reference

No comments:

Post a Comment