Allow a force run on system_ALL_* jobs
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 1 May 2019 15:18:59 +0000 (11:18 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 1 May 2019 15:18:59 +0000 (11:18 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
jobs/system-tests.yaml
scripts/system-tests/system-trigger.groovy

index 67f32d6efa4c203d1166f63bcbf1aad9fd1dade7..f5f1dd29fc598fcf152a6abbb9e0447daa91b25f 100644 (file)
 
     project-type: freestyle
     node: 'master'
+    parameters:
+      - bool:
+          name: 'FORCE_JOB_RUN'
+          default: false
+          description: 'Force the child jobs to run'
 
     properties:
       - build-discarder:
index 5c843b957164a0d9342479717f1c481d9ade28e7..c4fd5343d5dc2ae71864ad5c757d4525bdec0da8 100644 (file)
@@ -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.
This page took 0.02437 seconds and 4 git commands to generate.