Hi,
When i run below script through rundeck server manually, "exit /b 2" is working fine and failing job.
Below is the batch script script
if "%output%" equ "1" (
echo "Completed"
) else (
echo %output%
echo "Error, For Some Jobs because Event status was other than 4"
exit /b 2
)
When i run through rundeck Job is not failing because "exit /b 2" is passing furthur process.
Below is my flow:
==============
I am running Shell Script from Rundeck UI
Shell Script --> ansible script(It will connect to windows server, place and execute file in windows server) --> batch script
My Rundeck Server is linux Server.
When i trigger Shell Script for running Batch Script through linux server, "exit /b 2" is working and getting failed at that stage.
When i trigger same through rundeck, It is not failing and passing through Next Stages.
Can anyone please suggest me on this