Skip to content

Commit b79aedf

Browse files
authored
Sync eng/common directory with azure-sdk-tools for PR 11741 (#42612)
* Add a pipeline template to mark SDK package as released
1 parent 9355975 commit b79aedf

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
parameters:
2+
ConfigFileDir: ''
3+
PackageArtifactName: ''
4+
5+
steps:
6+
- task: AzureCLI@2
7+
inputs:
8+
azureSubscription: opensource-api-connection
9+
scriptType: pscore
10+
scriptLocation: scriptPath
11+
scriptPath: $(Build.SourcesDirectory)/eng/common/scripts/Mark-ReleasePlanCompletion.ps1
12+
arguments: -PackageInfoFilePath '${{ parameters.ConfigFileDir }}/${{ parameters.PackageArtifactName }}.json'
13+
workingDirectory: $(Pipeline.Workspace)
14+
displayName: Mark package as released
15+
continueOnError: true
16+
condition: and(succeeded(), ne(variables['Skip.MarkReleaseCompletion'], 'true'))

eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ function Get-ReleasePlanForPackage($packageName)
10521052
$query = "SELECT ${fieldList} FROM WorkItems WHERE [Work Item Type] = 'Release Plan' AND [${packageNameFieldName}] = '${packageName}'"
10531053
$query += " AND [${prStatusFieldName}] = 'merged'"
10541054
$query += " AND [System.State] IN ('In Progress') ORDER BY [System.CreatedDate]"
1055+
$query += " AND [System.Tags] NOT CONTAINS 'Release Planner App Test'"
10551056
$workItems = Invoke-Query $fields $query
10561057
return $workItems
10571058
}

0 commit comments

Comments
 (0)