Hi, If I understood correctly you would like to build your branch and have a post build action to change the build status only if the file exists, didn't you? If it's a postbuild action a skip action in the jenkins job doesn't make sense. Can you elaborate it a bit more?
Cheers On Tuesday, 12 January 2016 22:33:41 UTC, Chanukhya Bachina wrote: > > I create a file in workspace for a specific type of branch during my > compilation. If the file exists I want the change the built status to > NOT_BUILT and skip the job. > > How can I do it through post build groovy script. > -- 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/6bf07272-e81f-49a5-8df5-37bacdbfa8d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.