From cc3cae943e601434a71ec5194a3db310498776f5 Mon Sep 17 00:00:00 2001 From: zhangdd <86431843@qq.com> Date: Thu, 1 Apr 2021 17:01:23 +0800 Subject: [PATCH] test Signed-off-by: zhangdd <86431843@qq.com> --- Jenkinsfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1652003..674a3e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,10 +4,6 @@ pipeline { /* Jenkins为流水线分配一个执行器和工作区*/ agent any - script{ - def singlyQuoted='hello' - def doublyQuoted="world" - } @@ -16,8 +12,13 @@ pipeline { stage('echo'){ steps{ - echo 'hello mr. ${singlyQuoted}' - echo "i said hello mr. ${doublyQuoted}" + script{ + def singlyQuoted='hello' + def doublyQuoted="world" + echo 'hello mr. ${singlyQuoted}' + echo "i said hello mr. ${doublyQuoted}" + } + } } -- GitLab