test jenkins

This commit is contained in:
Fedor Katurov 2020-03-20 20:16:58 +07:00
parent 03c85c5112
commit 4adacd0698

12
Jenkinsfile vendored
View file

@ -7,12 +7,14 @@ pipeline {
stages {
stage('Show the branch 1') {
GIT_BRANCH_LOCAL = sh (
script: "echo $Branch | sed -e 's|origin/||g'",
returnStdout: true
).trim()
echo "Git branch: ${GIT_BRANCH_LOCAL}"
steps {
GIT_BRANCH_LOCAL = sh (
script: "echo $Branch | sed -e 's|origin/||g'",
returnStdout: true
).trim()
echo "Git branch: ${GIT_BRANCH_LOCAL}"
sh '/bin/true'
echo "BRANCH IS: ${env.BRANCH}"
}