CI: fixing slave pipelines

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
Raphael Defosseux
2020-01-26 13:41:36 +01:00
parent 893e19fa16
commit 4eaadf8d82
4 changed files with 18 additions and 18 deletions
+4 -4
View File
@@ -54,7 +54,7 @@ termStatusArray[termHSS] = false
def eNB_Repository
def eNB_Branch
def eNB_CommitID
def ranAllowMergeRequestProcess = false
def eNB_AllowMergeRequestProcess = false
def eNB_TargetBranch
pipeline {
@@ -145,8 +145,8 @@ pipeline {
}
echo "eNB_CommitID : ${eNB_CommitID}"
if (params.eNB_mergeRequest != null) {
ranAllowMergeRequestProcess = params.eNB_mergeRequest
if (ranAllowMergeRequestProcess) {
eNB_AllowMergeRequestProcess = params.eNB_mergeRequest
if (eNB_AllowMergeRequestProcess) {
if (params.eNB_TargetBranch != null) {
eNB_TargetBranch = params.eNB_TargetBranch
} else {
@@ -178,7 +178,7 @@ pipeline {
if (allParametersPresent) {
echo "All parameters are present"
if (ranAllowMergeRequestProcess) {
if (eNB_AllowMergeRequestProcess) {
sh "git fetch"
sh "./ci-scripts/doGitLabMerge.sh --src-branch ${eNB_Branch} --src-commit ${eNB_CommitID} --target-branch ${eNB_TargetBranch} --target-commit latest"
} else {