change the build status to NOT_BUILT if a file exists in post build

18 views
Skip to first unread message

Chanukhya Bachina

unread,
Jan 12, 2016, 5:33:41 PM1/12/16
to Jenkins Users

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.

Victor Martinez

unread,
Jan 20, 2016, 8:40:49 AM1/20/16
to Jenkins Users
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
Reply all
Reply to author
Forward
0 new messages