Sự kiện
21 giờ 17 thg 3 - 10 giờ 21 thg 3
Tham gia chuỗi buổi gặp gỡ để xây dựng các giải pháp AI có thể mở rộng dựa trên các trường hợp sử dụng trong thế giới thực với các nhà phát triển và chuyên gia đồng nghiệp.
Đăng ký ngayTrình duyệt này không còn được hỗ trợ nữa.
Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
To support integration and traceability across Azure DevOps Services with pipelines, you can configure several options. You can report pipeline status, copy the syntax for status badges, and set up automatic linking of work items to builds and releases.
Several features provide support for end-to-end traceability as user stories and features move through the development cycle. As with Azure Repos, you can link work items to pipeline objects with the following link types: Build, Integrated in build, and Integrated in release. The Integrated in release environment link can only be created by enabling the Report release status to Boards option in Classic release pipelines.
The following table summarizes the integration points between Azure Boards and Azure Pipelines. Options and configuration steps differ depending on whether you're configuring a YAML or Classic pipeline, and your Azure DevOps version. Most options are supported for pipelines run against an Azure Repos Git repository unless otherwise noted.
Feature
Description
Supported versions
Manually link work items to builds
You can link from a work item to builds within the same project or other projects within the organization. For more information, see Link to work items from other objects.
All versions
View builds linked to from a work item
You can view all builds linked to from a work item, whether manual or automatically linked, from the Links tab. For more information, see Link to work items from other objects, View list of linked objects.
All versions
Automatically link work items to builds
Required to populate the Development control with Integrated in build links. The work items or commits that are part of a release are computed from the versions of artifacts. For example, each build in Azure Pipelines is associated with a set of work items and commits. For more information, see Automatically link work items later in this article.
YAML, Azure DevOps Server 2020 and later
Automatically link work items to releases and report deployment status to a work item (Classic only)
Required to populate Deployment control in work item form with Integrated in release stage links. For more information, see Report deployment status to Boards later in this article.
Azure DevOps Server 2020 and later
View list of work items linked to a build or release
Review and open the work items included in a build or release.
YAML, Azure DevOps Server 2020 and later
Create work item on failure (Classic)
Automatically create a work item when a build fails, and optionally set values for work item fields. For more information, see Create work item on failure later in this article.
2018 and later versions
Query Work Items task, ensure the number of matching work items returned from a query is within a threshold.
Use this task to ensure the number of matching items returned by a work item query is within the configured thresholds. For more information, see Query Work Items task, Control deployments with gates and approvals.
Azure DevOps Server 2020 and later versions
Open Pipeline settings
For YAML-defined release pipelines, you configure the integration through the Pipeline settings dialog.
Open the pipeline, choose
More actions, and then choose Settings.
The Pipeline Settings dialog appears. For more information on automatic linking, see Automatically link work items later in this article.
This setting isn't available for Azure DevOps Server 2019 or earlier versions.
By enabling automatic linking, you can track the builds or releases that incorporated work without having to manually search through a large set of builds or releases. Every successful build associated with the work item automatically appears in the Development control of the work item form. Each release stage associated with the work item automatically appears in the Deployment control of the work item form.
By enabling automatic linking, you can track the builds that incorporated work without having to manually search through a large set of builds. Every successful build associated with the work item automatically appears in the Development control of the work item form.
Open Pipeline settings as described in Open Pipeline settings.
Enable Automatically link new work in this build.
Once enabled, Integrated in build links are generated for all work items linked to the selected pull request with each release run.
This feature isn't supported for YAML pipelines in Azure DevOps Server 2019.
When developing your software, you can link work items when you create a branch, commit, or pull request. Or, you can initiate a branch, commit, or pull request from a work item, automatically linking these objects as described in Drive Git development from a work item. For example, here we create a new branch from the Cancel order form user story.
When you automatically link work items to builds, the following computations are made:
For a first-time build:
For subsequent builds:
If a build pipeline fails, you can automatically create a work item to track getting the problem fixed. You can specify the work item type and set options to automatically assign it to the requestor or other fields. The requestor corresponds to the person that triggered the build.
Mẹo
The option to Create work item on failure is only supported for Classic pipelines. To accomplish this with a YAML pipeline, you can use a marketplace extension like Create Bug on Release failure or you can implement it yourself using Azure CLI or REST API calls.
Open pipeline build options as described in Build properties.
Enable Create work item on failure and choose the type of work item to create. Optionally check the Assign to requestor checkbox to set the Assign To field and add fields to set within the work item to create.
For example, here we choose the Bug work item type and specify the Priority and Tags fields and their values.
Save your pipeline.
To learn the reference name for a field, look it up from the Work item field index. For custom fields you add through an inherited process, Azure DevOps assigns a reference name based on friendly field name prefixed with Custom. For example, you add a field named DevOps Triage. The reference name is Custom.DevOpsTriage. No spaces are allowed within the reference name.
Open pipeline
More Actions and choose Status badge.
Choose the branch and scope of interest, and then choose
Copy to clipboard to copy the image or Markdown syntax.
When your code is stored in an Azure Repos Git repository, you can configure your release pipeline to display a badge on the Azure Repos pages. The badge indicates where the specific commit got deployed and whether the deployment is passing or failing. This option improves the traceability from code commit to deployment.
The deployment status is displayed in the following sections of Azure Repos:
If a commit gets deployed to multiple release pipelines, with multiple stages, each has an entry in the badge with status shown for each stage. By default, when you create a release pipeline, deployment status is posted for all stages. However, you can selectively choose the stages for which deployment status should be displayed in the status badge (for example, show only the production stage). Your team members can select the status badge to view the latest deployment status for each of the selected stages of the release pipelines.
Include Jira issues in work items and create links to all issues on stage completion. Install Azure Pipelines for Jira app in Jira Software cloud and add organization to create a connection.
To support integration with Jira issue tracking, install Azure DevOps for Jira and connect your Azure DevOps organizations with your Jira Software instance. You can connect multiple organizations with one instance and get data for all your teams and related projects. For more information, see Connect Azure DevOps to Jira.
Sự kiện
21 giờ 17 thg 3 - 10 giờ 21 thg 3
Tham gia chuỗi buổi gặp gỡ để xây dựng các giải pháp AI có thể mở rộng dựa trên các trường hợp sử dụng trong thế giới thực với các nhà phát triển và chuyên gia đồng nghiệp.
Đăng ký ngayĐào tạo
Lộ trình học tập
Xác định và thực hiện tích hợp liên tục - Training
Tạo quy trình tự động liên tục xây dựng, kiểm tra và triển khai các ứng dụng của bạn và chuẩn bị cho Kiểm tra AZ-400: Thiết kế và Thực hiện Microsoft DevOps Solutions.
Chứng chỉ
Chứng chỉ của Microsoft: Chuyên gia Kỹ sư DevOps - Certifications
Chứng chỉ này đo lường khả năng của bạn để hoàn thành các nhiệm vụ kỹ thuật sau: Thiết kế và thực hiện các quy trình và thông tin liên lạc, thiết kế và thực hiện một chiến lược kiểm soát nguồn, thiết kế và thực hiện quy trình xây dựng và phát hành, phát triển một kế hoạch bảo mật và tuân thủ, và thực hiện một chiến lược thiết bị.
Tài liệu
View Classic pipeline history - Azure Pipelines
Learn how to determine what changed, when it happened, and who made the changes using the build history in your classic pipelines.
Clone or import a pipeline - Azure Pipelines
Create a pipeline by cloning or importing an existing pipeline
Build source repositories - Azure Pipelines
Build source repositories using Azure Pipelines