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?
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.