From: Jonathan Rajotte Date: Wed, 1 May 2019 15:18:59 +0000 (-0400) Subject: Allow a force run on system_ALL_* jobs X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e000d7197f29ae8d9df7b10a642ae751886c4295;p=lttng-ci.git Allow a force run on system_ALL_* jobs Signed-off-by: Jonathan Rajotte --- diff --git a/jobs/system-tests.yaml b/jobs/system-tests.yaml index 67f32d6..f5f1dd2 100644 --- a/jobs/system-tests.yaml +++ b/jobs/system-tests.yaml @@ -383,6 +383,11 @@ project-type: freestyle node: 'master' + parameters: + - bool: + name: 'FORCE_JOB_RUN' + default: false + description: 'Force the child jobs to run' properties: - build-discarder: diff --git a/scripts/system-tests/system-trigger.groovy b/scripts/system-tests/system-trigger.groovy index 5c843b9..c4fd534 100644 --- a/scripts/system-tests/system-trigger.groovy +++ b/scripts/system-tests/system-trigger.groovy @@ -398,7 +398,7 @@ currentJobs.each { jobName, jobInfo -> // If the job ran in the past, we check if the IDs changed since. // Fetch past results only if the job is not of type canary or fuzzing. if (!jobName.contains('_canary') && !jobName.contains('_fuzzing') && - pastJobs.containsKey(jobName)) { + pastJobs.containsKey(jobName) && !params.FORCE_JOB_RUN) { pastJob = pastJobs[jobName]; // If the code has not changed report previous status.