pre-conditions to prevent delivery of code of specific files types such as .xsd
Hello,
2 answers
You would need to write a custom deliver precondition which would look at the changes in the change set and if it matches the files with these extensions and do not have the right role reject the change set. The user would then have to recreate the change set without these files and deliver it again.
Preconditions must not deliver. They can only prevent an operation. https://rsjazz.wordpress.com/2012/12/14/do-not-modify-the-triggering-element-in-an-operationadvisor/ Use follow up actions.
The Interface does not prevent this, but you can get into serious trouble, so you should not violate the rule. The SCM API does not support this as far as I know.
Comments
I don't believe Radha was asking for a pre-condition that would deliver, but rather was asking for a precondition for the deliver operation, to prevent the deliver from delivering certain file types.
If they want that, the question summary is totally wrong and they also probably want to prevent the checkin and not the deliver which requires 6.0.4.
Right, also the example you provided in your answer is the best way to get starting.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 27 '17, 7:37 p.m.Radha: Please clarify your question. In particular, are you looking for a pre-condition on delivery (as the question states) or for a pre-condition on checkin (as is stated a couple of times in the Body)?
Radha Sastrigal
Mar 27 '17, 9:03 p.m.Geoffrey, pre condition to prevent delivery
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 28 '17, 4:42 p.m.OK, I've edited the question to clarify that it is "deliver" (and not "checkin") that needs to be controlled.