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

How to ignore some file changes when triggering the build

Our build requires to update a property file (contains build time and build number) then deliver the file back to SCM (same stream) after the build. This will cause a problem that the scheduled build is always kicked off because RTC always detects changes in the stream. Is there a way to tell RTC not to trigger the build if the change occurs in some certain files (I know that there is such option in the Dependency Build)?

0 votes


Accepted answer

Permanent link
I don't think build definitions can ignore a file. I can suggest some ways that you could still do this without triggering unwanted builds:

1. Keep the property file in another component. Don't load this component as part of the build. Load it using ant tasks and the CLI to update the file and deliver the change.
2. Switch from continuous builds to a scheduled build (ie. x times a day). It'll always build but you won't constantly have a build running.
3. Create a second stream for the property file. The build can update the second stream with post-build deliver.
4. Switch to custom scripts using the CLI and determine if you need to continue the build or not.
Kevin Lou selected this answer as the correct answer

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
× 12,019
× 562

Question asked: Apr 02 '13, 12:27 p.m.

Question was seen: 5,012 times

Last updated: Apr 02 '13, 4:51 p.m.

Confirmation Cancel Confirm