release stage: add Cirillo user check

This commit is contained in:
Roberto Cirillo 2022-10-11 11:38:01 +02:00
parent 928bbfa138
commit 010b1c950b
1 changed files with 2 additions and 5 deletions

7
Jenkinsfile vendored
View File

@ -21,7 +21,6 @@ if ("${params.gCube_release_version}" || "${params.RELEASE_URL}"){
}else{
releaseURL = "${params.RELEASE_URL}"
}
//load the release file
text = releaseURL.toURL().getText()
//parsing
@ -157,10 +156,8 @@ pipeline {
anyOf{
triggeredBy 'BuildUpstreamCause'
triggeredBy 'UpstreamCause'
// this condition should be deleted. This is active only for testing purpose
triggeredBy 'UserIdCause'
}
expression { params.TRIGGER_JOB != "${RELEASE_JOB}" }
expression { params.TRIGGER_JOB != "${RELEASE_JOB}" }
}
steps {
sh '''
@ -212,7 +209,7 @@ pipeline {
triggeredBy 'BuildUpstreamCause'
triggeredBy 'UpstreamCause'
//added just for testing . To Remove.
triggeredBy 'UserIdCause'
triggeredBy cause: "UserIdCause", detail: "Roberto Cirillo"
}
// we should improve this conditional check
equals(actual: "${params.TRIGGER_JOB}", expected: "${RELEASE_JOB}")