Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- environment {
- user = 'ben'
- user_id = '512'
- DISABLE_AUTH = 'true'
- DB_ENGINE = 'sqlite'
- }
- stages {
- stage('print env vars') {
- steps {
- sh 'printenv | sort'
- }
- }
- stage('use env vars') {
- steps {
- echo "Build_Number = ${env.BUILD_NUMBER}"
- echo "USER = ${env.user}"
- echo "USER_ID = ${user_id}"
- echo "Database engine is ${DB_ENGINE}"
- echo "DISABLE_AUTH is ${DISABLE_AUTH}"
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement