Hi Virg,
When you put in the text SUCCESS in the post build task "Log text" box,
it is not checking whether the build ended with status success; rather
it does a simple search for the text "SUCCESS" anywhere in the build log
during the post-build phase. Same for "FAILURE". So I would guess
somewhere in the build log you find the words SUCCESS and FAILURE.
One option would be to have your main build script decide whether it
succeeded or failed, and then echo a distinctive message to the log.
Search for that message in your post build tasks. Because you want to
run a batch script with success or failure as the argument, you can use
a regular expression as shown in the help for post build task. So if
your main build script echoes "This build result: success" or "This
build result: failure" then you can use the Log text expression "This
build result: success" and the Script "D:\\run.cmd success". Add a
corresponding task for failure.
Regards,
Eric
> --
> 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-use...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>