From 25169e69fc46c67e55dcd352e658243c32f26ae2 Mon Sep 17 00:00:00 2001 From: zhangdd <86431843@qq.com> Date: Thu, 1 Apr 2021 17:16:36 +0800 Subject: [PATCH] test Signed-off-by: zhangdd <86431843@qq.com> --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cb60cf3..aa8e1a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,9 +6,11 @@ pipeline { environment{ - """ - echo 'hello' - """ + hello= 'hello' + + world="""${sh(returnStatus:true, + script:'echo "world"')} +""" } @@ -22,6 +24,7 @@ pipeline { echo 'hello mr. ${singlyQuoted}' echo "i said hello mr. ${doublyQuoted}" } + echo "${world}" } } -- GitLab