I'm testing about a dozen applications, all written in PHP using Zend Framework, which do their unit testing with PHPUnit. I've recently turned off code coverage for all these builds, as many of them take 30+ minutes to finish a single build with code completion turned on, and 15-60 seconds to do a build with it turned off. I am starting to miss the nice charts which show the code coverage history though.
So, is there a way I can schedule a nightly build which happens when a change has occurred in the last 24 hours? For this build, I will have a custom variable set which will include the code coverage options for PHPUnit. I suppose I could have it do a nightly build whether or not a commit has occurred, but it seems like a waste of build numbers for some of our projects which aren't being actively worked on.
Can anyone think of a way to do this, or a better alternative I'm totally missing?
Thanks!
How about using repository polling trigger with cron schedule set to once a day?
If there is another trigger set (Stash Repository Triggered, the default one) will it see changes? Or will it know that a build was already done earlier in the day which built off that code change? I also just realized there doesn't seem to be a way to set custom variables to different values within the triggers... Is there a way to trigger a build manually with custom parameters outside of Bamboo's UI? Like maybe a linux cron job?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for not coming back to you earlier. If you have 2 triggers on a plan, they 'share' the history. So if Stash triggers the build, the polling later on will not trigger it again. You can use /queue REST resource to start build from a script. If you add params in form of "bamboo.variableName" to the query string, bamboo will use those to override respective global/plan variables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.