Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync eng/common directory with azure-sdk-tools for PR 8597 #2868

Merged
merged 1 commit into from
Jul 10, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# is used when this pipeline is going to be generating and publishing daily dev builds.
parameters:
ServiceDirectory: ''
Condition: succeeded()
steps:
- ${{if ne(parameters.ServiceDirectory, '')}}:
- task: Powershell@2
Expand All @@ -13,12 +14,12 @@ steps:
pwsh: true
workingDirectory: $(Pipeline.Workspace)
displayName: Dump Package properties
condition: succeeded()
condition: ${{ parameters.Condition }}
- 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: and(succeeded(), eq(variables['SetDevVersion'], ''))
condition: and(${{ parameters.Condition }}, eq(variables['SetDevVersion'], ''))
4 changes: 4 additions & 0 deletions eng/common/pipelines/templates/steps/verify-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ parameters:
- name: ForRelease
type: boolean
default: false
- name: Condition
type: string
default: succeeded()

steps:
- task: Powershell@2
Expand All @@ -23,4 +26,5 @@ steps:
pwsh: true
workingDirectory: $(Pipeline.Workspace)
displayName: Verify ChangeLogEntry for ${{ parameters.PackageName }}
condition: ${{ parameters.Condition }}
continueOnError: false
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Template for all Python Scripts in this repository
parameters:
parameters:
SourceDirectory: ''
BasePathLength: 49
Condition: succeeded()

steps:
- task: PythonScript@0
displayName: Analyze Path Lengths
condition: ${{ parameters.Condition }}
inputs:
scriptSource: inline
script: |
Expand Down
4 changes: 4 additions & 0 deletions eng/common/pipelines/templates/steps/verify-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ parameters:
- name: DocWardenVersion
type: string
default: ''
- name: Condition
type: string
default: succeeded()

steps:
- task: PowerShell@2
displayName: "Verify Readmes"
condition: ${{ parameters.Condition }}
inputs:
filePath: "eng/common/scripts/Verify-Readme.ps1"
arguments: >
Expand Down
Loading