Exemple #1
0
 private JobConfig getJob(JobIdentifier identifier) {
   JobConfig jobConfig = null;
   try {
     jobConfig =
         cruiseConfig()
             .findJob(
                 identifier.getPipelineName(),
                 identifier.getStageName(),
                 identifier.getBuildName());
   } catch (Exception ignored) {
   }
   return jobConfig;
 }
 public JobInstance mostRecentJobWithTransitions(JobIdentifier job) {
   Long buildId =
       findOriginalJobIdentifier(job.getStageIdentifier(), job.getBuildName()).getBuildId();
   return buildByIdWithTransitions(buildId);
 }