From c0f3030190a2bba8cff41bdfa57d9de563c89c6c Mon Sep 17 00:00:00 2001 From: dany Date: Fri, 16 Sep 2022 13:04:57 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2b8d73a..aa21a93 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,6 +52,7 @@ pipeline{ sh''' export -p | tee env.source ''' + writeFile file: 'env.source' text:'printenv' sshCommand remote: remote, command: '''#! /bin/bash set -e echo $WORKSPACE @@ -59,9 +60,8 @@ pipeline{ export WORKSPACE="jenkins/workspace/test" cd $WORKSPACE bash test.sh - source env.source - printenv ''' + sshScript remote: remote, script: "env.source" sshCommand remote: remote, command: '''#! /bin/bash for i in {1..5}; do echo -n "Loop $i ";