@Override protected void onExecuteStart(ExecutableContext executableContext) { final long startTime = getStartTime(); Map<String, String> info = Maps.newHashMap(); info.put(BUILD_INSTANCE, DistributedLockFactory.processAndHost()); if (startTime > 0) { getManager().updateJobOutput(getId(), ExecutableState.RUNNING, info, null); } else { info.put(START_TIME, Long.toString(System.currentTimeMillis())); getManager().updateJobOutput(getId(), ExecutableState.RUNNING, info, null); } }
@Override protected void onExecuteStart(ExecutableContext executableContext) { Map<String, String> info = Maps.newHashMap(); info.put(START_TIME, Long.toString(System.currentTimeMillis())); final long startTime = getStartTime(); if (startTime > 0) { jobService.updateJobOutput(getId(), ExecutableState.RUNNING, null, null); } else { jobService.updateJobOutput(getId(), ExecutableState.RUNNING, info, null); } }
@Override protected void onExecuteStart(ExecutableContext executableContext) { Map<String, String> info = Maps.newHashMap(); info.put(START_TIME, Long.toString(System.currentTimeMillis())); final long startTime = getStartTime(); if (startTime > 0) { jobService.updateJobOutput(getId(), ExecutableState.RUNNING, null, null); } else { jobService.updateJobOutput(getId(), ExecutableState.RUNNING, info, null); } }
@Override protected void onExecuteStart(ExecutableContext executableContext) { final long startTime = getStartTime(); if (startTime > 0) { getManager().updateJobOutput(getId(), ExecutableState.RUNNING, null, null); } else { Map<String, String> info = Maps.newHashMap(); info.put(START_TIME, Long.toString(System.currentTimeMillis())); getManager().updateJobOutput(getId(), ExecutableState.RUNNING, info, null); } }