Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions eng/pipelines/aggregate-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ stages:
displayName: 'Prep Environment'

- template: /eng/common/pipelines/templates/steps/login-to-github.yml
parameters:
TokenOwners:
- azure


- task: PythonScript@0
condition: succeededOrFailed()
env:
Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/conda-update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,4 @@ extends:
- [ ] After upload, delete the dummy libraries and make the new packages publicly available in Conda.
- [ ] Create an AKA link for new release logs here: http://aka.ms/
BaseBranchName: main
AuthToken: ''
4 changes: 3 additions & 1 deletion eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
TargetRepoName: $(DocRepoName)
TargetRepoOwner: $(DocRepoOwner)
WorkingDirectory: $(DocRepoLocation)
AuthToken: ''

- task: AzureCLI@2
displayName: Queue Docs CI build for main
Expand Down Expand Up @@ -200,7 +201,8 @@ jobs:
WorkingDirectory: $(DocRepoLocation)
ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts
PushArgs: -f

AuthToken: ''

- task: AzureCLI@2
displayName: Queue Docs CI build for daily branch
inputs:
Expand Down
21 changes: 20 additions & 1 deletion eng/pipelines/templates/jobs/ci.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,29 @@ jobs:
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT]$dotnetroot"
displayName: 'Set DOTNET_ROOT'

- ${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
- checkout: self
displayName: 'Sparse checkout eng/common/scripts for GitHub login'
path: s/_login_scripts
sparseCheckoutDirectories: eng/common/scripts
fetchDepth: 1

- pwsh: |
$source = "$(Build.SourcesDirectory)/_login_scripts/eng"
$dest = "$(Agent.TempDirectory)"
Copy-Item -Recurse -Force $source $dest
Remove-Item -Recurse -Force "$(Build.SourcesDirectory)/*" -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force "$(Build.SourcesDirectory)/.git" -ErrorAction SilentlyContinue
displayName: Copy and clean repo checkout folder

- template: /eng/common/pipelines/templates/steps/login-to-github.yml
parameters:
ScriptDirectory: "$(Agent.TempDirectory)/eng/common/scripts"

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
TokenToUseForAuth: $(azuresdk-github-pat)
TokenToUseForAuth: $(GH_TOKEN)
Paths:
- '**'

Expand Down
21 changes: 20 additions & 1 deletion eng/pipelines/templates/jobs/live.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,29 @@ jobs:
container: $[ variables['Container'] ]

steps:
- ${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
- checkout: self
displayName: 'Sparse checkout eng/common/scripts for GitHub login'
path: s/_login_scripts
sparseCheckoutDirectories: eng/common/scripts
fetchDepth: 1

- pwsh: |
$source = "$(Build.SourcesDirectory)/_login_scripts/eng"
$dest = "$(Agent.TempDirectory)"
Copy-Item -Recurse -Force $source $dest
Remove-Item -Recurse -Force "$(Build.SourcesDirectory)/*" -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force "$(Build.SourcesDirectory)/.git" -ErrorAction SilentlyContinue
displayName: Copy and clean repo checkout folder

- template: /eng/common/pipelines/templates/steps/login-to-github.yml
parameters:
ScriptDirectory: "$(Agent.TempDirectory)/eng/common/scripts"

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
TokenToUseForAuth: $(azuresdk-github-pat)
TokenToUseForAuth: $(GH_TOKEN)
Paths:
- '**'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ stages:
ReleaseSha: $(Build.SourceVersion)
RepoId: Azure/azure-sdk-for-python
WorkingDirectory: $(System.DefaultWorkingDirectory)
AuthToken: ''

- ${{if ne(artifact.skipPublishPackage, 'true')}}:
- deployment: PublishPackage
Expand Down Expand Up @@ -352,7 +353,8 @@ stages:
CommitMsg: "Increment package version after release of ${{ artifact.name }}"
PRTitle: "Increment version for ${{ parameters.ServiceDirectory }} releases"
CloseAfterOpenForTesting: '${{ parameters.TestPipeline }}'

AuthToken: ''

- ${{if and(eq(variables['Build.Reason'], 'Manual'), eq(variables['System.TeamProject'], 'internal'))}}:
- template: /eng/pipelines/templates/jobs/smoke.tests.yml
parameters:
Expand Down
13 changes: 8 additions & 5 deletions eng/pipelines/templates/stages/python-analyze-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ stages:
- script: |
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- task: PythonScript@0
displayName: 'Run Pylint Next'
continueOnError: true
Expand All @@ -44,7 +47,7 @@ stages:
--disablecov
--filter-type="Omit_management"
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)

- task: PythonScript@0
displayName: 'Run MyPy Next'
Expand All @@ -57,7 +60,7 @@ stages:
--checks="next-mypy"
--disablecov
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)

- task: PythonScript@0
displayName: 'Run Pyright Next'
Expand All @@ -70,7 +73,7 @@ stages:
--checks="next-pyright"
--disablecov
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)

- script: |
python -m pip install PyGithub>=1.59.0
Expand All @@ -86,7 +89,7 @@ stages:
--service="${{ parameters.ServiceDirectory }}"
--disablecov
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

- task: UsePythonVersion@0
Expand All @@ -108,4 +111,4 @@ stages:
--service="${{ parameters.ServiceDirectory }}"
--checks="next-sphinx"
env:
GH_TOKEN: $(azuresdk-github-pat)
GH_TOKEN: $(GH_TOKEN)
21 changes: 20 additions & 1 deletion eng/pipelines/templates/steps/build-package-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,29 @@ parameters:
default: []

steps:
- ${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
- checkout: self
displayName: 'Sparse checkout eng/common/scripts for GitHub login'
path: s/_login_scripts
sparseCheckoutDirectories: eng/common/scripts
fetchDepth: 1

- pwsh: |
$source = "$(Build.SourcesDirectory)/_login_scripts/eng"
$dest = "$(Agent.TempDirectory)"
Copy-Item -Recurse -Force $source $dest
Remove-Item -Recurse -Force "$(Build.SourcesDirectory)/*" -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force "$(Build.SourcesDirectory)/.git" -ErrorAction SilentlyContinue
displayName: Copy and clean repo checkout folder

- template: /eng/common/pipelines/templates/steps/login-to-github.yml
parameters:
ScriptDirectory: "$(Agent.TempDirectory)/eng/common/scripts"

- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
${{ if endsWith(variables['Build.Repository.Name'], '-pr') }}:
TokenToUseForAuth: $(azuresdk-github-pat)
TokenToUseForAuth: $(GH_TOKEN)
Paths:
- '**'

Expand Down
1 change: 1 addition & 0 deletions eng/pipelines/templates/steps/verify-autorest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ steps:
CommitMsg: "Regenerated code from nightly builds"
PRTitle: "Automated autorest generation"
PRBranchName: 'autorest-${{ parameters.ServiceDirectory }}'
AuthToken: ''
1 change: 1 addition & 0 deletions eng/pipelines/tsp-spec-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ extends:

Generated from workflow triggered by PR #$(System.PullRequest.PullRequestNumber).
CommitMsg: 'Auto-update TSP client generated code'
AuthToken: ''

Loading