Skip to content

Commit 461a88a

Browse files
Clean up repository resources (Azure#13295)
1 parent fc12bd8 commit 461a88a

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This script fragment is used across our repos to set a variable "SetDevVersion" which
2+
# is used when this pipeline is going to be generating and publishing daily dev builds.
3+
4+
steps:
5+
- pwsh: |
6+
$setDailyDevBuild = "false"
7+
if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) {
8+
$setDailyDevBuild = "true"
9+
}
10+
echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild"
11+
displayName: "Setup Versioning Properties"
12+
condition: eq(variables['SetDevVersion'], '')

eng/pipelines/templates/jobs/archetype-sdk-client.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
echo "##vso[build.addbuildtag]Scheduled"
1010
displayName: "Tag scheduled builds"
1111
condition: and(eq(variables['Build.SourceBranchName'],'master'),eq(variables['Build.Reason'],'Schedule'))
12-
- template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools
12+
- template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml
1313
- pwsh: |
1414
$skipDevBuildNumber = "false"
1515
# For .NET builds the only case we want to not have dev build numbers on our packages is when it is manually queued and

eng/pipelines/templates/jobs/archetype-sdk-tests.yml

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
resources:
2-
repositories:
3-
- repository: azure-sdk-tools
4-
type: github
5-
name: azure/azure-sdk-tools
6-
endpoint: azure
7-
ref: refs/tags/azure-sdk-tools_20200618.1
8-
91
parameters:
102
- name: PreSteps
113
type: object

eng/pipelines/templates/stages/archetype-sdk-client.yml

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
resources:
22
repositories:
3-
- repository: azure-sdk-tools
4-
type: github
5-
name: azure/azure-sdk-tools
6-
endpoint: azure
7-
ref: refs/tags/azure-sdk-tools_20200618.1
83
- repository: azure-sdk-build-tools
94
type: git
105
name: internal/azure-sdk-build-tools

0 commit comments

Comments
 (0)