|
@@ -1,4 +1,4 @@
|
|
|
-/**
|
|
|
|
|
|
|
+/**
|
|
|
* UAT: Checkout -> Maven -> (optional) push images to Harbor -> deploy jar + docker restart.
|
|
* UAT: Checkout -> Maven -> (optional) push images to Harbor -> deploy jar + docker restart.
|
|
|
*
|
|
*
|
|
|
* Jenkins Job: Pipeline script from SCM
|
|
* Jenkins Job: Pipeline script from SCM
|
|
@@ -317,7 +317,7 @@ pipeline {
|
|
|
stage('Checkout') {
|
|
stage('Checkout') {
|
|
|
steps {
|
|
steps {
|
|
|
script {
|
|
script {
|
|
|
- // Do not use env.GIT_BRANCH 鈥?Jenkins SCM plugin injects origin/<branch> and overwrites it.
|
|
|
|
|
|
|
+ // Do not use env.GIT_BRANCH - Jenkins SCM plugin injects origin/<branch> and overwrites it.
|
|
|
def branch = normalizeGitBranch(params.GIT_BRANCH)
|
|
def branch = normalizeGitBranch(params.GIT_BRANCH)
|
|
|
if (!branch) {
|
|
if (!branch) {
|
|
|
error('GIT_BRANCH is required')
|
|
error('GIT_BRANCH is required')
|