Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to run a scheduled pipeline with a complex cron expression

Jasraj Bedi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2023

I want to run a bitbucket scheduled pipeline just on weekdays, currently bitbucket scheduled pipelines  does not let me enter a cron expression to do that.

so the question is what is the preferred way to do it, and also is supporting complex cron expression in the roadmap?

1 answer

1 accepted

1 vote
Answer accepted
Mateus T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 1, 2023

Hi @Jasraj Bedi!

Currently, the UI only allows for a few simple patterns, however, while using our Rest API you are able to provide any cron patterns!

I performed some internal tests and, I was able to create a schedule to run a build every weekday at 12:00 using the following pattern:

0 0 12 ? * MON-FRI *

Would you be able to test the schedules endpoint providing your pattern and let us know if that works?

Cheers,

Mat

Jasraj Bedi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 1, 2023

Hi @Mateus T  thanks for the response, i was able to create a schedule with monday to friday with the rest api.

Do you know if we would be able to do the same with UI someday? Is it on the roadmap?

Mateus T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 2, 2023

Hi @Jasraj Bedi!

Awesome! Glad to know the API helped!

Currently, the ability to create more complex schedules is not on our roadmap, however, we do have an open Feature Request with our development team:

Our development team will give a first-hand update through that ticket if any progress is made, so I suggest keeping a watch for it. Please note that all enhancements are implemented with this policy in mind.

Cheers,

Mat

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events