Skip to content
Snippets Groups Projects
Commit 3cdac15d authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : ensuring pipeline is treated as an array even when it contains only 1 object

parent 05440950
No related branches found
No related tags found
No related merge requests found
......@@ -416,7 +416,8 @@
$PIPELINES = $PIPELINES |
Where-Object { $_.web_url -match $CI_PROJECT_NAMESPACE } |
Sort-Object -Property updated_at -Descending
Write-Host "Final Pipelines to parse : "
$PIPELINES = @($PIPELINES)
Write-Host "Final Pipelines nb to parse : $($PIPELINES.Count)"
$PIPELINES | Out-String
Write-Host "*************************************************************************"
Write-Host "*************************************************************************"
......@@ -455,7 +456,7 @@
}
}
if ( $FOUND_JOB -eq 0 ) {
Write-Host "ERROR : no successful job \"$DEPENDENCY_JOB\" found in branch \"$BRANCH_TO_PULL\" for project \"$CI_PROJECT_NAMESPACE/$DEP_NAME\""
Write-Host "ERROR : no successful job $DEPENDENCY_JOB found in branch $BRANCH_TO_PULL for project $CI_PROJECT_NAMESPACE/$DEP_NAME"
if ( ! "$CI_MERGE_REQUEST_ID" -and ! "$CI_MERGE_REQUEST_TITLE" -match '.+Draft.+' ){
Write-Host "*************************************************************************"
Write-Host "*************************************************************************"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment