test jenkins

This commit is contained in:
Fedor Katurov 2020-03-20 20:17:40 +07:00
parent 4adacd0698
commit 3a8d0021cd

3
Jenkinsfile vendored
View file

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