Skip to content

Commit cac2b0c

Browse files
committed
Make post-build signing disabled for internal builds only.
1 parent a06531c commit cac2b0c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.vsts-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ pr:
1717
variables:
1818
- name: _CIBuild
1919
value: -restore -build -sign -pack -ci
20-
- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:
20+
# Disable post-build signing for internal release-branch builds or internal manual builds.
21+
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual'))) }}:
2122
- name: PostBuildSign
2223
value: false
2324
- ${{ else }}:

.vsts-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ variables:
2323
value: .NETCore
2424
- name: _DotNetValidationArtifactsCategory
2525
value: .NETCore
26-
- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:
26+
# Disable post-build signing for internal release-branch builds or internal manual builds.
27+
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual'))) }}:
2728
- name: PostBuildSign
2829
value: false
2930
- ${{ else }}:

0 commit comments

Comments
 (0)