diff --git a/Jenkinsfile b/Jenkinsfile index bd96d26..5151006 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 ''' } }