tags:

views:

154

answers:

1

I have a "run script" step that dynamically creates resources/files that I copy into the build dirs. Every run of this script produces different content so I want it to run on every build. The script gets run correctly on a clean build however once a build is made the step is not run again since no source has been modified.

I tried setting the input of the step to /dev/random but it does not seem to trigger a changed environment and does not re run the step.

Is there a way I can set this up so this step gets run ever time build is pressed, as opposed to only when the source is modified or clean?

+1  A: 

You should put the Run Script build phase in a separate Aggregate Target, and make your main target dependent on the Aggregate Target. The Aggregate should be built every time.

cdespinosa