generated from gCubeCI/Pipeline-Docker-Template
release stage: add Cirillo user check
This commit is contained in:
parent
928bbfa138
commit
010b1c950b
|
@ -21,7 +21,6 @@ if ("${params.gCube_release_version}" || "${params.RELEASE_URL}"){
|
||||||
}else{
|
}else{
|
||||||
releaseURL = "${params.RELEASE_URL}"
|
releaseURL = "${params.RELEASE_URL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
//load the release file
|
//load the release file
|
||||||
text = releaseURL.toURL().getText()
|
text = releaseURL.toURL().getText()
|
||||||
//parsing
|
//parsing
|
||||||
|
@ -157,10 +156,8 @@ pipeline {
|
||||||
anyOf{
|
anyOf{
|
||||||
triggeredBy 'BuildUpstreamCause'
|
triggeredBy 'BuildUpstreamCause'
|
||||||
triggeredBy 'UpstreamCause'
|
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 {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
@ -212,7 +209,7 @@ pipeline {
|
||||||
triggeredBy 'BuildUpstreamCause'
|
triggeredBy 'BuildUpstreamCause'
|
||||||
triggeredBy 'UpstreamCause'
|
triggeredBy 'UpstreamCause'
|
||||||
//added just for testing . To Remove.
|
//added just for testing . To Remove.
|
||||||
triggeredBy 'UserIdCause'
|
triggeredBy cause: "UserIdCause", detail: "Roberto Cirillo"
|
||||||
}
|
}
|
||||||
// we should improve this conditional check
|
// we should improve this conditional check
|
||||||
equals(actual: "${params.TRIGGER_JOB}", expected: "${RELEASE_JOB}")
|
equals(actual: "${params.TRIGGER_JOB}", expected: "${RELEASE_JOB}")
|
||||||
|
|
Loading…
Reference in New Issue