Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
// 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) && !params.FORCE_JOB_RUN) {
+ pastJobs.containsKey(jobName) &&
+ build.getBuildVariables().get('FORCE_JOB_RUN') == 'false') {
pastJob = pastJobs[jobName];
// If the code has not changed report previous status.