Commit 243c1c05 authored by FANG WANG's avatar FANG WANG

Update Jenkinsfile-gitlab

parent 050f3daa
...@@ -115,10 +115,10 @@ pipeline { ...@@ -115,10 +115,10 @@ pipeline {
sh "./ci-scripts/checkCodingFormattingRules.sh --src-branch ${env.gitlabSourceBranch} --target-branch ${env.gitlabTargetBranch}" sh "./ci-scripts/checkCodingFormattingRules.sh --src-branch ${env.gitlabSourceBranch} --target-branch ${env.gitlabTargetBranch}"
def res=readFile('./oai_rules_result.txt').trim(); def res=readFile('./oai_rules_result.txt').trim();
if ("0".equals(res)) { if ("0".equals(res)) {
def message = "OAI " + JOB_NAME + " build (" + BUILD_ID + "): All Changed files in Merge Request follow OAI Formatting Rules" def message = JOB_NAME + " build (" + BUILD_ID + "): All Changed files in Merge Request follow OAI Formatting Rules"
addGitLabMRComment comment: message addGitLabMRComment comment: message
} else { } else {
def message = "OAI " + JOB_NAME + " build (" + BUILD_ID + "): Some Changed files in Merge Request DO NOT follow OAI Formatting Rules" def message = JOB_NAME + " build (" + BUILD_ID + "): Some Changed files in Merge Request DO NOT follow OAI Formatting Rules"
addGitLabMRComment comment: message addGitLabMRComment comment: message
} }
} else { } else {
...@@ -152,7 +152,7 @@ pipeline { ...@@ -152,7 +152,7 @@ pipeline {
post { post {
failure { failure {
script { script {
def message = "OAI " + JOB_NAME + " build (" + BUILD_ID + "): Merge Conflicts -- Cannot perform CI" def message = JOB_NAME + " build (" + BUILD_ID + "): Merge Conflicts -- Cannot perform CI"
addGitLabMRComment comment: message addGitLabMRComment comment: message
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment