Sync eng/common directory with azure-sdk-tools for PR 11745 (#6707)
* Fix wiql issue in getting release plan work items * Update eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * .NET requires custom source path since source path contains dev tools repo * Remove order by --------- Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com> Co-authored-by: Praven Kuttappan <55455725+praveenkuttappan@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9c2426e2da
commit
2178b94d86
@ -1,6 +1,7 @@
|
||||
parameters:
|
||||
ConfigFileDir: ''
|
||||
PackageArtifactName: ''
|
||||
SourceRootPath: $(Build.SourcesDirectory)
|
||||
|
||||
steps:
|
||||
- task: AzureCLI@2
|
||||
@ -8,7 +9,7 @@ steps:
|
||||
azureSubscription: opensource-api-connection
|
||||
scriptType: pscore
|
||||
scriptLocation: scriptPath
|
||||
scriptPath: $(Build.SourcesDirectory)/eng/common/scripts/Mark-ReleasePlanCompletion.ps1
|
||||
scriptPath: ${{ parameters.SourceRootPath }}/eng/common/scripts/Mark-ReleasePlanCompletion.ps1
|
||||
arguments: -PackageInfoFilePath '${{ parameters.ConfigFileDir }}/${{ parameters.PackageArtifactName }}.json'
|
||||
workingDirectory: $(Pipeline.Workspace)
|
||||
displayName: Mark package as released
|
||||
|
||||
@ -1051,7 +1051,7 @@ function Get-ReleasePlanForPackage($packageName)
|
||||
$fieldList = ($fields | ForEach-Object { "[$_]"}) -join ", "
|
||||
$query = "SELECT ${fieldList} FROM WorkItems WHERE [Work Item Type] = 'Release Plan' AND [${packageNameFieldName}] = '${packageName}'"
|
||||
$query += " AND [${prStatusFieldName}] = 'merged'"
|
||||
$query += " AND [System.State] IN ('In Progress') ORDER BY [System.CreatedDate]"
|
||||
$query += " AND [System.State] IN ('In Progress')"
|
||||
$query += " AND [System.Tags] NOT CONTAINS 'Release Planner App Test'"
|
||||
$workItems = Invoke-Query $fields $query
|
||||
return $workItems
|
||||
|
||||
Loading…
Reference in New Issue
Block a user