Your Azure DevOps project has a task group named Deploy-Web at version 1.*. Twenty Classic release pipelines use it. You must make a change to its tasks that might break some of those pipelines.
Requirements:
- Pipelines that use version
1.*must not receive the change unless their owners choose to upgrade. - The change must be validated in a test release pipeline before it is marked as production-ready.
- After validation, the new version must be production-ready, and the Web-Release pipeline must use it.
Which actions should you perform, in order?
You didn't answer this one.
A change that might break pipelines should be rolled out as a new major version, which pipelines adopt only when their owners explicitly update. Save the edits as a draft, publish a preview, and validate it through a saved test pipeline before publishing it as production-ready. Then switch Web-Release to the new version. Saving the task group directly would instead update all pipelines using 1.* automatically.
- Step 1: Open Deploy-Web from the Task groups page, edit the tasks on the Tasks tab, and then select Save as draft. The draft holds the edited tasks that every later step publishes, tests and adopts, so it must exist first.
- Step 2: Choose Publish draft, select Publish as preview, and then select Publish. The draft must exist before it can be published as the preview version used in the next step.
- Step 3: In the test release pipeline, change the Deploy-Web version to the new preview version, save the pipeline, and run a new release to validate the change. The preview version must be published before it can be selected, and the pipeline change must be saved before creating the test release.
- Step 4: On Deploy-Web, choose Publish preview, and then select Publish. Requirement 2 forces validation in the test pipeline before the version is marked production-ready.
- Step 5: Edit the Web-Release pipeline, select the new production-ready version of Deploy-Web, and save the pipeline. Requirement 3 needs the production-ready version, which exists only after the preview is published.
- Not needed: Edit the tasks of Deploy-Web and select Save. Saving directly creates a minor version update that appears automatically in every pipeline using 1.*, which breaks requirement 1.
- Not needed: Publishing the draft directly as production-ready skips the preview stage and marks the version production-ready before test validation.
- Task groups in Classic pipelines - Azure PipelinesMicrosoft Learn