Commit cc3cae94 authored by zhangdd's avatar zhangdd

test

Signed-off-by: default avatarzhangdd <86431843@qq.com>
parent 926f93c6
...@@ -4,10 +4,6 @@ pipeline { ...@@ -4,10 +4,6 @@ pipeline {
/* Jenkins为流水线分配一个执行器和工作区*/ /* Jenkins为流水线分配一个执行器和工作区*/
agent any agent any
script{
def singlyQuoted='hello'
def doublyQuoted="world"
}
...@@ -16,8 +12,13 @@ pipeline { ...@@ -16,8 +12,13 @@ pipeline {
stage('echo'){ stage('echo'){
steps{ steps{
echo 'hello mr. ${singlyQuoted}' script{
echo "i said hello mr. ${doublyQuoted}" def singlyQuoted='hello'
def doublyQuoted="world"
echo 'hello mr. ${singlyQuoted}'
echo "i said hello mr. ${doublyQuoted}"
}
} }
} }
......
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