stela
stela

Reputation: 59

Azure DevOps pipeline continues to run despite removing schedule

I am working on a project using Azure DevOps pipelines, and I'm facing an issue with pipeline runs persisting even after removing the schedule.

I removed the schedule section from my Azure DevOps pipeline YAML file, but the pipeline continues to run on a schedule. I'm not sure what's causing this unexpected behavior.

I have a simplified version of my pipeline YAML file without the schedule section. Here it is:

trigger:
    branches:
        include:
            - develop 

pr: none
pool:
    vmImage: ubuntu-20.04

Please let me know if you have any idea why the scheduler is still running despite the removal of the schedule section from the YAML file. Your insights would be greatly appreciated.

Upvotes: 2

Views: 519

Answers (2)

Yusman
Yusman

Reputation: 11

just want to share the similar issue that I had. I removed the trigger my feature branch but somehow the CI pipeline is still being triggered. Answer from this question (New pipeline on Azure DevOps shows error message "Some recent issues detected related to pipeline trigger."). Apparently, the trigger default branch is set to main, and my main branch is using the old trigger. I changed to develop which don't have the trigger. The issue resolved after that. No more unexpected pipeline runs.

Upvotes: 1

stela
stela

Reputation: 59

I had to wipe the slate clean by removing the pipeline, its builds, and all related artifacts, only to rebuild and recreate it once more in Azure DevOps. That solved my problem.

Upvotes: 0

Related Questions