Skip to content

Commit 9c6160b

Browse files
committed
Review Changes
1 parent f644a8c commit 9c6160b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

buildenv/jenkins/jck_sync

+3-5
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def syncJckMaterial(){
4646
def JCK_GIT_BRANCH = params.JCK_GIT_BRANCH ? "-gb ${params.JCK_GIT_BRANCH}": ""
4747
def ARTIFACTORY_URL = params.ARTIFACTORY_URL ? "-au ${params.ARTIFACTORY_URL}": ""
4848
def JCK_GIT_REPO = params.JCK_GIT_REPO ? "-repo ${params.JCK_GIT_REPO}": ""
49-
def EXITCODE = 1
5049
stage('JCKUpdater') {
5150
getJavaSDK()
5251

@@ -60,12 +59,12 @@ def syncJckMaterial(){
6059
sshagent(credentials:["${params.USER_CREDENTIALS_ID}"], ignoreMissing: true){
6160
def SCRIPT = "./jckupdater.sh ${JCK_VERSION} -at \"\$ARTIFACTORY_CREDENTIALS\" ${JCK_GIT_REPO} -gt \"\$GIT_CREDENTIALS\" ${ARTIFACTORY_URL} ${JCK_GIT_BRANCH} "
6261
def tempOutputFile = "temp_output.txt"
63-
EXITCODE = sh(script: "${SCRIPT} > ${tempOutputFile}", returnStatus: true)
62+
def EXITCODE = sh(script: "${SCRIPT} > ${tempOutputFile}", returnStatus: true)
6463
def scriptOutput = readFile(tempOutputFile).trim()
65-
echo ("jckupdater script output:")
64+
echo ("JCKUpdater script output:")
6665
echo scriptOutput
6766
if (EXITCODE == 2) {
68-
error("JCKUpdater script returned exit code 2, as no new update available. Gracefully stop the execution of pipeline.")
67+
error ("JCKUpdater script returned exit code 2, as no new update available. Gracefully stop the execution of pipeline.")
6968
currentBuild.result = "SUCCESS"
7069
} else if (EXITCODE == 0) {
7170
echo ("Script returned exit code 0, new update is available and PR is created.")
@@ -155,4 +154,3 @@ def createComment(comment,number) {
155154
}
156155
}
157156
}
158-

0 commit comments

Comments
 (0)