Ejemplo n.º 1
0
 private void saveTransitions(JobInstance jobInstance) {
   for (JobStateTransition transition : jobInstance.getTransitions()) {
     if (!transition.hasId()) {
       saveTransition(jobInstance, transition);
     }
   }
   if (jobInstance.getIdentifier() != null) {
     String pipelineName = jobInstance.getIdentifier().getPipelineName();
     String stageName = jobInstance.getIdentifier().getStageName();
     cache.flushEntry(jobInstance.getBuildDurationKey(pipelineName, stageName));
   }
 }
Ejemplo n.º 2
0
 private void saveTransition(JobInstance jobInstance, JobStateTransition transition) {
   transition.setJobId(jobInstance.getId());
   transition.setStageId(jobInstance.getStageId());
   getSqlMapClientTemplate().insert("insertTransition", transition);
 }