Update 'Jenkinsfile'
Some checks failed
test-multi-branches/pipeline/head There was a failure building this commit

This commit is contained in:
dany 2022-09-16 14:48:16 +02:00
parent c1bbb3c484
commit f59967c69e

7
Jenkinsfile vendored
View File

@ -53,6 +53,7 @@ pipeline{
export -p | tee env.source
cat <<"EOF" >>env.source
printenv
echo "current branch is $BRANCH_NAME"
EOF
'''
sshCommand remote: remote, command: '''#! /bin/bash
@ -64,12 +65,6 @@ EOF
bash test.sh
'''
sshScript remote: remote, script: "env.source"
sshCommand remote: remote, command: '''#! /bin/bash
for i in {1..5}; do
echo -n "Loop $i ";
date ;
sleep 1;
done
'''
}
}