Compare commits

...

3 Commits

Author SHA1 Message Date
dany
1292ae8740 Update 'Jenkinsfile'
All checks were successful
test-multi-branches/pipeline/head This commit looks good
gitea-sync/test/pipeline/head This commit looks good
2022-09-16 14:51:28 +02:00
dany
971c1ea29b Update 'Jenkinsfile'
All checks were successful
test-multi-branches/pipeline/head This commit looks good
2022-09-16 14:50:21 +02:00
dany
f59967c69e Update 'Jenkinsfile'
Some checks failed
test-multi-branches/pipeline/head There was a failure building this commit
2022-09-16 14:48:16 +02:00

8
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,13 +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
'''
}
}
}