Domanda

I am trying to setup cruisecontrol to call a series of batch jobs, one calling the other sequentially.

One batch script calls the other by the below syntax:

 call nextbat %1

Problem is that I noticed that even if the call fails due to the next batch script not found, Cruisecontrol exits with a success. here is the exit log:

<buildresults>
  <message level="Error">'nextbat' is not recognized as an internal or external     command,</message>
  <message level="Error">operable program or batch file.</message>
</buildresults>

The last line of my bat file is already

exit /b %errorlevel%

Please suggest.

È stato utile?

Soluzione

Found the issue.

I had to change

<successExitCodes>-1,0,1</successExitCodes>

to

<successExitCodes>-1,0</successExitCodes>

under

<Tasks><exec>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top