We have critical test pipelines that should run every5min . When I open schedule I see only Daily , Weekly, Hourly .
@mounika.nallagundla
Pipelines UI contains wide-used propositions for period. For custom schedule you can post this schedule using bitbucket api (doc https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines_config/schedules/#post ).
Regards, Galyna
@Halyna Berezovska thank you very much.
Could you please provide me a piece of code example for pattern or more example information on this if possible.
Thank you
@Halyna Berezovska where exactly we can hook up this in our Repository ?
@mounika.nallagundla for example, you can create a custom pipeline that is posting a schedule. But it actually can be done only once, if you're not gonna to remove it.
But anyway, to automate this more, in bitbucket-pipelines.yml you can write something like this:
schedule-pipeline: &schedule-pipeline step: name: Schedule script: - curl -x POST -d '{"cron_pattern": "...."}' urlcustom:schedule-pipeline: - <<: *schedule-pipeline
The url and request data can be found here https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines_config/schedules/#post
.
It looks like you're new here. Sign in or register to get started.