Skip to content

Commit 4722411

Browse files
authored
Ensure Pip CG (Azure#37261)
* add auth-dev-feed to internal `build` step. This will have the effect of locking down the bits we build packages with
1 parent 3e5e59c commit 4722411

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

eng/pipelines/templates/jobs/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
image: $(LINUXVMIMAGE)
7272
os: linux
7373

74+
variables:
75+
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'
76+
7477
steps:
7578
- template: /eng/pipelines/templates/steps/build.yml
7679
parameters:
@@ -89,6 +92,9 @@ jobs:
8992
image: $(WINDOWSVMIMAGE)
9093
os: windows
9194

95+
variables:
96+
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'
97+
9298
steps:
9399
- template: /eng/pipelines/templates/steps/build.yml
94100
parameters:
@@ -107,6 +113,9 @@ jobs:
107113
vmImage: $(MACVMIMAGE)
108114
os: macOS
109115

116+
variables:
117+
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'
118+
110119
steps:
111120
- template: /eng/pipelines/templates/steps/build.yml
112121
parameters:
@@ -130,7 +139,7 @@ jobs:
130139
name: $(LINUXPOOL)
131140
image: $(LINUXVMIMAGE)
132141
os: linux
133-
142+
134143
variables:
135144
ComponentDetection.SourcePath: '$(Build.SourcesDirectory)/sdk/${{ parameters.ServiceDirectory }}'
136145

eng/pipelines/templates/steps/build-extended-artifacts.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ steps:
2929
inputs:
3030
versionSpec: '3.11'
3131

32+
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
33+
- template: auth-dev-feed.yml
34+
parameters:
35+
DevFeedName: ${{ parameters.DevFeedName }}
36+
3237
- template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml
3338
parameters:
3439
PackageName: "azure-template"
@@ -52,11 +57,6 @@ steps:
5257
parameters:
5358
ServiceDirectory: ${{ parameters.ServiceDirectory }}
5459

55-
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
56-
- template: auth-dev-feed.yml
57-
parameters:
58-
DevFeedName: ${{ parameters.DevFeedName }}
59-
6060
- task: PythonScript@0
6161
displayName: 'Generate Docs'
6262
condition: and(succeededOrFailed(), ${{parameters.BuildDocs}})

eng/pipelines/templates/steps/build-package-artifacts.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ steps:
4545
displayName: 'Tag scheduled builds'
4646
condition: and(eq(variables['Build.SourceBranchName'], variables['DefaultBranch']), eq(variables['Build.Reason'],'Schedule'))
4747
48+
- ${{if eq(variables['System.TeamProject'], 'internal') }}:
49+
- template: auth-dev-feed.yml
50+
parameters:
51+
DevFeedName: ${{ parameters.DevFeedName }}
52+
4853
- template: /eng/pipelines/templates/steps/use-venv.yml
4954
parameters:
5055
VirtualEnvironmentName: "venv"

0 commit comments

Comments
 (0)