-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix workitem creation on sync failure (#602)
<!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below * https://github.com/microsoft/BCApps/Contributing.md --> #### Summary <!-- Provide a general summary of your changes --> Move 'Report build status' to its own job running on a different pool and set up syncing for release branches as well Add releases/* to workflows not currently triggered on release branches #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#498823](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/498823)
- Loading branch information
1 parent
1806fd7
commit f03b101
Showing
4 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ schedules: | |
branches: | ||
include: | ||
- main | ||
- releases/* | ||
|
||
pool: | ||
name: 'd365bc-agentpool-nonprod-bcapps-sync' | ||
|
@@ -26,6 +27,7 @@ variables: | |
jobs: | ||
- job: SyncMirror | ||
dependsOn: [] | ||
displayName: Sync mirror with upstream | ||
steps: | ||
- powershell: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -36,9 +38,19 @@ jobs: | |
inputs: | ||
filePath: build\scripts\SyncMirror.ps1 | ||
arguments: '-SourceRepository "https://github.com/microsoft/BCApps.git" -TargetRepository $(TargetRepository) -Branch $(Build.SourceBranch) -ManagedIdentityAuth' | ||
|
||
- job: ReportBuildStatus | ||
dependsOn: | ||
- SyncMirror | ||
pool: 'd365bc-agentpool-nonprod-build-official' | ||
condition: failed() | ||
displayName: Report build status | ||
steps: | ||
- checkout: none | ||
- template: workitem-build-tracking.yml@PipelineTemplates | ||
parameters: | ||
Priority: '2' | ||
Severity: '2' | ||
Issue: 'Infrastructure Defect' | ||
SecurityImpact: 'No' | ||
Priority: '2' | ||
Severity: '2' | ||
Issue: 'Build Break' | ||
SecurityImpact: 'No' | ||
Condition: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ schedules: | |
branches: | ||
include: | ||
- main | ||
- releases/* | ||
|
||
pool: | ||
name: d365bc-agentpool-nonprod-build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters