Skip to content

Commit

Permalink
remove empty block in the Jenkinsfile
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information
berezovskyi committed Feb 16, 2022
1 parent 57b7f69 commit 5d3a4bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ pipeline {
maven 'apache-maven-latest'
jdk 'temurin-jdk11-latest'
}
environment {
// https://stackoverflow.com/questions/42383273/get-git-branch-name-in-jenkins-pipeline-jenkinsfile
// BRANCH_NAME_B = "${GIT_BRANCH.split("/")[1]}"
// BRANCH_NAME_A = "${GIT_BRANCH.split("/").size() > 1 ? GIT_BRANCH.split("/")[1] : GIT_BRANCH}"
// BRANCH_NAME = "${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
}
// environment {
// // https://stackoverflow.com/questions/42383273/get-git-branch-name-in-jenkins-pipeline-jenkinsfile
// // BRANCH_NAME_B = "${GIT_BRANCH.split("/")[1]}"
// // BRANCH_NAME_A = "${GIT_BRANCH.split("/").size() > 1 ? GIT_BRANCH.split("/")[1] : GIT_BRANCH}"
// // BRANCH_NAME = "${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
// }
stages {
stage('Debug') {
steps {
Expand Down

0 comments on commit 5d3a4bd

Please sign in to comment.