test jenkins

This commit is contained in:
Fedor Katurov 2020-03-20 20:15:55 +07:00
parent 74f7d2171b
commit 03c85c5112

5
Jenkinsfile vendored
View file

@ -7,6 +7,11 @@ pipeline {
stages { stages {
stage('Show the branch 1') { 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 { steps {
sh '/bin/true' sh '/bin/true'
echo "BRANCH IS: ${env.BRANCH}" echo "BRANCH IS: ${env.BRANCH}"