From e000d7197f29ae8d9df7b10a642ae751886c4295 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 1 May 2019 11:18:59 -0400 Subject: [PATCH] Allow a force run on system_ALL_* jobs Signed-off-by: Jonathan Rajotte --- jobs/system-tests.yaml | 5 +++++ scripts/system-tests/system-trigger.groovy | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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. -- 2.34.1