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

pre-conditions to prevent delivery of code of specific files types such as .xsd

 Hello,


We have a need to add a constraint on either specific users or specific file types being delivered, for example: .XSD  Due to the specialized nature of the work only handful team members work on schema changes. However, there's no policing or controls we know of that have prevented this from occurring. 
We do have an approval pre-conditions however that is only at work item level on not necessarily checks for content being checked in
Any suggestions on how to prevent specific file types being delivered to stream? 

0 votes

Comments

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)?

 Geoffrey, pre condition to prevent delivery

OK, I've edited the question to clarify that it is "deliver" (and not "checkin") that needs to be controlled.



2 answers

Permanent link

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.


1 vote


Permanent link

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.

0 votes

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.

You are right Geoffrey.

Ralph - We use Jazz v.4.0.6
1) What would you suggest would be best fit for preventing check-in of change-sets of specific file type by all developers?
2) What settings do we configure to make this happen?

If you are looking at preventing a check-in there is no support for writing check-in preconditions. In the upcoming release (604) we have provided the capability to write custom check-in preconditions.

Custom deliver precondition is the way to go to achieve this functionality.

 Right, also the example you provided in your answer is the best way to get starting.

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

Question asked: Mar 24 '17, 10:55 a.m.

Question was seen: 1,712 times

Last updated: Mar 28 '17, 4:42 p.m.

Confirmation Cancel Confirm