Exemplo n.º 1
0
 /* (non-Javadoc)
  * @see hudson.plugins.sctmexecutor.service.ISCTMService#start(int)
  */
 public Collection<ExecutionHandle> start(int executionId) throws SCTMException {
   try {
     ExecutionHandle[] handles = execService.startExecution(this.sessionId, executionId);
     logonRetryCount = 0;
     return convertToList(handles);
   } catch (RemoteException e) {
     if (handleLostSessionException(e)) return start(executionId);
     LOGGER.log(Level.WARNING, e.getMessage(), e);
     throw new SCTMException(
         MessageFormat.format(
             Messages.getString("SCTMService.err.commonFatalError"), e.getMessage()));
   }
 }
Exemplo n.º 2
0
 /* (non-Javadoc)
  * @see hudson.plugins.sctmexecutor.service.ISCTMService#start(int, java.lang.String)
  */
 public Collection<ExecutionHandle> start(int executionId, String buildNumber)
     throws SCTMException {
   try {
     ExecutionHandle[] handles =
         execService.startExecution(this.sessionId, executionId, buildNumber, 1, null);
     return convertToList(handles);
   } catch (RemoteException e) {
     if (handleLostSessionException(e)) {
       return start(executionId, buildNumber);
     }
     LOGGER.log(Level.WARNING, e.getMessage(), e);
     throw new SCTMException(
         MessageFormat.format(
             Messages.getString("SCTMService.err.commonFatalError"),
             e.getMessage())); // $NON-NLS-1$
   }
 }