My ultimate goal is to trigger a build that creates a branch in our repository every other wednesday. There is nothing in a cron entry to do that, so I created 2 build plans to achieve this. Both plans are scheduled to run every wednesday. One of them is the plan that creates the branch and is dependent on the other build being successful. The other one is just a flip flopping build with a script that takes a variable that is incrementing every build and causes the build to fail on 1 run and pass on the next. So on the off wednesday, it fails, but the following wednesday it should pass. My problem, is the scheduled job to make it run again after a failure doesn't seem to be working. Which brings me to my question, do failed build jobs not get triggered off a scheduled build?
Community moderators have prevented the ability to post new answers.
There is indeed no Cron expression to achieve this.
Can't you stick to just 1 plan, which starts with s Script Task that determines if it's a Wednesday that the build should run or not?
Yeah, your right I can stick to 1 plan. I made that change and it does simplify things, but I am still running into the same problem. One week it runs, the next week the script fails and the build stops as intended with the build marked as failed. The next week, the script doesn't even start. I'm thinking that failed builds won't run on a scheduled trigger, which is weird because I know they work on a SVN pulling trigger.
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.