Re: Is there a way to fail the build after it's finished?

2016-01-20 Thread Victor Martinez
Probably you could run the build promotion and some adhoc system groovy script to change the status. But using that approach might be dangerous as you will use some internal api and will require some knowledge otherwise you might break its reliability and consistency. What if you add an extra

Re: Is there a way to fail the build after it's finished?

2016-01-15 Thread Maciej Jaros
That doesn't work. There doesn't seem to be a simple way to promote all sucessfull build automatically (i.e. make them OK by default) and then revoke promotion status (effectively marking it is failed). So still looking for a way to fail the build on demand (manually). Eric Pyle (2016-01-13

Is there a way to fail the build after it's finished?

2016-01-13 Thread Maciej Jaros
Hi. I want to fail one of the builds to be able to mark it as something that should not be deployed. My setup is that I have two task: 1. One just builds project and saves artifacts (war files). 2. Second copies artifacts of last successful build and deploys them. Occasionally some build

Re: Is there a way to fail the build after it's finished?

2016-01-13 Thread Eric Pyle
Seems like this could be handled by build promotion? On 1/13/2016 8:50 AM, Maciej Jaros wrote: Hi. I want to fail one of the builds to be able to mark it as something that should not be deployed. My setup is that I have two task: 1. One just builds project and saves artifacts (war files).