1

I have a scheduled bitbucket pipeline and I wanted to run the pipeline only when the changes are occurring then scheduled pipeline should run otherwise skip the pipeline execution.

However, there aren't always changes that require deployment. Ideally, if there have been no changes to the code base since the last deployment, the pipeline wouldn't run that day.

Is there any way to achieve this behaviour ?

blaCkninJa
  • 445
  • 2
  • 11
  • 22

1 Answers1

0

Maybe try adding a Conditional Step with "changesets" and "includePaths" into your yml file.

See here for an example and a reference link (item 4 in the answer): prevent the bitbucket pipline from tirggering when bitbucket-pipelines.yml is updated

Mr-IDE
  • 7,051
  • 1
  • 53
  • 59