Trigger a build every other week

I have a build that I would like to run overnight, every other Thursday but I can't find a way to do this in TeamCity. Even using the "advanced (cron expression)" option I can't find a way to achieve this.

Have I missed something and if not would it be possible to add such a feature?

6 comments
Comment actions Permalink

Thanks for the reply but reading the documentation was the first thing I did and unfortunately none of the examples show how to achieve what I want.

0
Comment actions Permalink

There is an example for "Every Sunday at 1:00AM" event - the cron string is "0 0 1 ? * SUN".
Does it work for you?

0
Comment actions Permalink

No it doesn't I'm afraid. I am looking for every other week, not every week

0
Comment actions Permalink

I am also looking into running a build biweekly. Can this be achieved in 2021?

0
Comment actions Permalink

It is not currently possible to create a bi-weekly schedule trigger in TeamCity 2021, because the schedule trigger relies on cron expressions. Unfortunately, a bi-weekly cron expression is just not possible. We do, however, have a feature request to provide further options for the schedule trigger.

If this is something you'd like to see in a future release, please show your interest by voting/commenting on this feature request: https://youtrack.jetbrains.com/issue/TW-66781. We use our YouTrack site to determine which features are included in future releases and feedback is very much appreciated on the YouTrack site.

It is possible to add a build to the queue via REST API. One possibility would be to have an external script that runs every two weeks to trigger a build. For the details on how to start a build via REST API, please refer to our documentation: https://www.jetbrains.com/help/teamcity/rest/start-and-cancel-builds.html.

 

1

Please sign in to leave a comment.