Thanks, yes the exit code is the cause for this. Had to change my batch
lines like this

bat "robocopy %cd%${some_path1}${some_path2} ${path_to_node}\\a_folder1
file1 file2 ^& IF %ERRORLEVEL% LEQ 1 exit 0"
bat "robocopy %cd%${some_path1}${some_path3} ${path_to_node}\\a_folder2
file1 file2 ^& IF %ERRORLEVEL% LEQ 1 exit 0"


On Sun, Apr 17, 2016 at 3:55 PM, Daniel Beck <m...@beckweb.net> wrote:

>
> > On 17.04.2016, at 21:13, niristotle okram <nirish.ok...@gmail.com>
> wrote:
> >
> > When the job comes to portion where the above code exist, it appears
> that the first line of robocopy is executed. And it exist.
>
> Robocopy uses non-zero exit codes to indicate what it did rather than
> report a problem/failure -- which is likely how 'bat' interprets those. Try
> something like described here:
>
> https://technet.microsoft.com/en-us/library/ff182367%28WS.10%29.aspx
>
> You may need to use 'exit /b 0' instead if 'exit 0' for Pipeline, not sure.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/EAEE75D5-1374-4F1C-BFA1-3D0920FE1C9E%40beckweb.net
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards
nirish okram

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPzcO4hy%2BgZVi5ag0uFj%3D%3D_WT%3D2BTZ2jM%2BTvZevcQkToO44cBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to