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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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 "*************************************************************************"