Can I schedule a pipeline to run on a week of the month

Sean Dean January 18, 2024

I'm able to schedule Pipelines via the API, which is nice and provides a good deal of granularity. I'm wondering if it's possible to schedule a pipeline to run on the second Monday of the month. I feel like I can't, but I thought maybe someone in the community might have an answer. 

 

1 answer

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2024

We had a similar use a few years ago and we implemented the followings:

  1. Set a Google script trigger with the corresponding CRON expression (we wanted to run a build every morning)
  2. The Google script did nothing else, but triggered the build via the standard Bitbucket Cloud REST API

It was a few lines of code, and it has been working reliably since then.

I don't know if there is a better way to do it today, but probably Bitbucket Cloud still doesn't do it out of the box. And, of course, you can use any other platform that supports flexible scheduling and making a REST API call.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events