diff --git a/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml b/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml new file mode 100644 index 000000000000..2e10f695c998 --- /dev/null +++ b/eng/common/pipelines/templates/steps/daily-dev-build-variable.yml @@ -0,0 +1,12 @@ +# This script fragment is used across our repos to set a variable "SetDevVersion" which +# is used when this pipeline is going to be generating and publishing daily dev builds. + +steps: +- pwsh: | + $setDailyDevBuild = "false" + if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) { + $setDailyDevBuild = "true" + } + echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild" + displayName: "Setup Versioning Properties" + condition: eq(variables['SetDevVersion'], '') diff --git a/eng/pipelines/client.yml b/eng/pipelines/client.yml index 65e51ad9d8e7..b5ed0d6fc462 100644 --- a/eng/pipelines/client.yml +++ b/eng/pipelines/client.yml @@ -4,14 +4,6 @@ trigger: - master -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - ref: refs/tags/azure-sdk-tools_20200618.1 - variables: DefaultOptions: '--batch-mode --fail-at-end -Dmaven.wagon.http.pool=false --settings eng/settings.xml' LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' diff --git a/eng/pipelines/docindex.yml b/eng/pipelines/docindex.yml index 89fa6c311098..add650b3cc4d 100644 --- a/eng/pipelines/docindex.yml +++ b/eng/pipelines/docindex.yml @@ -1,11 +1,3 @@ -resources: - repositories: - - repository: azure-sdk-tools - type: github - name: azure/azure-sdk-tools - ref: refs/tags/azure-sdk-tools_20200618.1 - endpoint: azure - jobs: - job: CreateDocIndex variables: @@ -18,7 +10,7 @@ jobs: inputs: versionSpec: '3.6' - - template: eng/pipelines/templates/scripts/replace-relative-links.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/replace-relative-links.yml parameters: TargetFolder: . RootFolder: . @@ -39,7 +31,7 @@ jobs: displayName: 'Use Python 3.6' inputs: versionSpec: '3.6' - - template: eng/pipelines/templates/scripts/mashup-doc-index.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/mashup-doc-index.yml parameters: SourceDirectory: $(Build.SourcesDirectory) - task: CopyFiles@2 diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 67173c57d2c4..3c69ae82b243 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -64,7 +64,7 @@ jobs: inputs: versionSpec: '3.6' - - template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml - ${{ each artifact in parameters.Artifacts }}: - script: | diff --git a/eng/pipelines/templates/jobs/archetype-sdk-data.yml b/eng/pipelines/templates/jobs/archetype-sdk-data.yml index 5a17aee93df9..c0b0eb195c5a 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-data.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-data.yml @@ -55,7 +55,7 @@ jobs: inputs: versionSpec: '3.6' - - template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml - ${{ each artifact in parameters.Artifacts }}: - script: | diff --git a/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml b/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml index 314aa903aae8..c912ac39997f 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-pom-only.yml @@ -29,7 +29,7 @@ jobs: inputs: versionSpec: '3.6' - - template: tools/daily-dev-build-variable/daily-dev-build-variable.yml@azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml - script: | pip install setuptools wheel diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index dee81478fecc..3f57cf4450bd 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -4,11 +4,6 @@ resources: type: git name: internal/azure-sdk-build-tools ref: refs/tags/azure-sdk-build-tools_20200618.4 - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - ref: refs/tags/azure-sdk-tools_20200618.1 parameters: - name: Artifacts diff --git a/eng/pipelines/templates/stages/archetype-sdk-data.yml b/eng/pipelines/templates/stages/archetype-sdk-data.yml index e98003657c37..f0348c56ac18 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-data.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-data.yml @@ -4,11 +4,6 @@ resources: type: git name: internal/azure-sdk-build-tools ref: refs/tags/azure-sdk-build-tools_20200618.4 - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - ref: refs/tags/azure-sdk-tools_20200618.1 parameters: - name: Artifacts diff --git a/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml b/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml index dfb4a0ff6372..32fec8a1900c 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-pom-only.yml @@ -4,11 +4,6 @@ resources: type: git name: internal/azure-sdk-build-tools ref: refs/tags/azure-sdk-build-tools_20200618.4 - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - ref: refs/tags/azure-sdk-tools_20200618.1 parameters: - name: Artifacts diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index d59a746bd1bc..d135774c22dc 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -4,11 +4,6 @@ resources: type: git name: internal/azure-sdk-build-tools ref: refs/tags/azure-sdk-build-tools_20200618.4 - - repository: azure-sdk-tools - type: github - name: Azure/azure-sdk-tools - endpoint: azure - ref: refs/tags/azure-sdk-tools_20200618.1 parameters: - name: Artifacts