diff --git a/Jenkinsfile b/Jenkinsfile index 33b8669a64aecfaa6dd7e1e52e884d3cf0b12cb5..f52fceff68875cf7e34c62833460ae6ad5a402a3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,23 +5,23 @@ pipeline { agent any - environment{ - hello= 'hello' + environment { + hello = 'hello' - world="""${sh(returnStatus:true, - script:'"world"')} -""" + world = """${sh(returnStatus: true, + script: '"world"')} + """ } stages { - stage('echo'){ - steps{ - script{ - def singlyQuoted='hello' - def doublyQuoted="world" - echo 'hello mr. ${singlyQuoted}' + stage('echo') { + steps { + script { + def singlyQuoted = 'hello' + def doublyQuoted = "world" + echo "hello mr. ${singlyQuoted}" echo "i said hello mr. ${doublyQuoted}" } echo "${hello}" @@ -30,10 +30,10 @@ pipeline { } } - stage('read environment'){ - steps{ + stage('read environment') { + steps { echo "${env.BUILD_ID}" - echo '---------------------------' + echo "---------------------------" // echo ${env.BUILD_ID} } } @@ -59,7 +59,7 @@ pipeline { stage('deploy') { steps { - echo 'deploy...' + echo "${version}_${env.BUILD_ID}deploy..." } }