mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
21 lines
No EOL
549 B
Groovy
21 lines
No EOL
549 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
gitParameter branchFilter: '.*/(.*)', defaultValue: 'hoogabooga', name: 'BRANCH', type: 'PT_BRANCH'
|
|
}
|
|
|
|
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 {
|
|
sh '/bin/true'
|
|
echo "BRANCH IS: ${env.BRANCH}"
|
|
}
|
|
}
|
|
}
|
|
} |