Commit 1ea75355 authored by yuxunhui's avatar yuxunhui

no message

parent 71ce3705
...@@ -5,23 +5,23 @@ pipeline { ...@@ -5,23 +5,23 @@ pipeline {
agent any agent any
environment{ environment {
hello= 'hello' hello = 'hello'
world="""${sh(returnStatus:true, world = """${sh(returnStatus: true,
script:'"world"')} script: '"world"')}
""" """
} }
stages { stages {
stage('echo'){ stage('echo') {
steps{ steps {
script{ script {
def singlyQuoted='hello' def singlyQuoted = 'hello'
def doublyQuoted="world" def doublyQuoted = "world"
echo 'hello mr. ${singlyQuoted}' echo "hello mr. ${singlyQuoted}"
echo "i said hello mr. ${doublyQuoted}" echo "i said hello mr. ${doublyQuoted}"
} }
echo "${hello}" echo "${hello}"
...@@ -30,10 +30,10 @@ pipeline { ...@@ -30,10 +30,10 @@ pipeline {
} }
} }
stage('read environment'){ stage('read environment') {
steps{ steps {
echo "${env.BUILD_ID}" echo "${env.BUILD_ID}"
echo '---------------------------' echo "---------------------------"
// echo ${env.BUILD_ID} // echo ${env.BUILD_ID}
} }
} }
...@@ -59,7 +59,7 @@ pipeline { ...@@ -59,7 +59,7 @@ pipeline {
stage('deploy') { stage('deploy') {
steps { steps {
echo 'deploy...' echo "${version}_${env.BUILD_ID}deploy..."
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment