From 010b1c950b1b56aaf6fd7b9fc632520661a09264 Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Tue, 11 Oct 2022 11:38:01 +0200 Subject: [PATCH] release stage: add Cirillo user check --- Jenkinsfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb98f5a..e6e719a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}")