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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?