Skip to content

feat(3475): Add DISABLED state and stateChanger fields to pipeline model#612

Merged
minghay merged 1 commit intomasterfrom
sagar1312-feat-3475-pipeline_disabling
Apr 2, 2026
Merged

feat(3475): Add DISABLED state and stateChanger fields to pipeline model#612
minghay merged 1 commit intomasterfrom
sagar1312-feat-3475-pipeline_disabling

Conversation

@sagar1312
Copy link
Copy Markdown
Member

@sagar1312 sagar1312 commented Mar 13, 2026

Context

Screwdriver supports enabling and disabling individual jobs to prevent builds from being created or executed for those jobs. This is useful for temporarily pausing specific parts of a pipeline without removing them.

However, for large pipelines with many jobs, managing this at the job level becomes time-consuming and inefficient — each job must be disabled individually. There is currently no way to disable an entire pipeline in one action.

Additionally, pipelines currently only support three states: ACTIVE, INACTIVE (used for child pipelines managed by a config pipeline), and DELETING. There is no first-class concept of a user-initiated disabled state at the pipeline level.

Objective

  • Add DISABLED to pipeline states (VALID_STATES_FOR_UPDATE restricts updates to ACTIVE/DISABLED)
  • Add stateChanger, stateChangeTime, stateChangeMessage fields to pipeline model
  • Add migration to add new columns to pipelines table
  • Add/update tests for new state and fields

References

screwdriver-cd/screwdriver#3475

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

- Add DISABLED to pipeline states (VALID_STATES_FOR_UPDATE restricts updates to ACTIVE/DISABLED)
- Add stateChanger, stateChangeTime, stateChangeMessage fields to pipeline model
- Add migration to add new columns to pipelines table
- Add/update tests for new state and fields

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@minghay minghay merged commit 3013bdd into master Apr 2, 2026
2 checks passed
@minghay minghay deleted the sagar1312-feat-3475-pipeline_disabling branch April 2, 2026 18:53
@sd-buildbot
Copy link
Copy Markdown

🎉 This PR is included in version 26.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants