Skip to content

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

Open
sagar1312 wants to merge 1 commit intomasterfrom
sagar1312-feat-3475-pipeline_disabling
Open

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

Conversation

@sagar1312
Copy link
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants