Only upload files if not in PR
MODIFY
Jenkinsfile
Jenkinsfile
@@ -16,11 +16,16 @@ try {
}
}
parallel builders
+
+ //Only upload files if not in a PR (i.e., CHANGE_ID not empty)
+ echo "In Branch/PR " + (env.CHANGE_ID?.trim())
+ if (!env.CHANGE_ID?.trim()) {
node('linux') {
stage('Upload finalization') {
finalizeUpload(params.VERSION)
}
}
+ }
} catch(exception) {
currentBuild.result = 'FAILURE'
throw exception

Only upload files if not in PR