Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Build - how to unset "deletion allowed" during a build on a build result

This is a question from a customer.

They need to set some build results as "do not delete". It's a decision made during the build process. I could'nt find an ant task that is able to unset the "deletion allowed" flag of a build result. Did I miss it ?

Thanks,

Nicolas

0 votes



One answer

Permanent link

Nicolas,

I am not aware of an ANT task that does this. You can however use the plain Java client libraries to set the flag. https://rsjazz.wordpress.com/2015/10/28/build-artifacts-publishing-and-automated-build-output-management-using-the-plain-java-client-libraries/ shows an example that works not in the build, but asynchronous. However you could have this in a build as well. The example creates a release, but it is no rocket science to find the API do remove deletion allowed.

You can also create custom ANT tasks for the Java APIs. Either way, you need a custom automation using an API.

Please note, the build automation user who does this must have the permission to do so.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 562
× 25

Question asked: Jan 09 '17, 6:44 a.m.

Question was seen: 2,380 times

Last updated: Jan 09 '17, 10:46 a.m.

Confirmation Cancel Confirm