From fef71755a6eb345416bfa069bb33bba3d89053cf Mon Sep 17 00:00:00 2001 From: Amilcar Aponte Jimenez Date: Wed, 11 Dec 2024 12:18:00 +0000 Subject: [PATCH] Removing dependency to Enterprise Build pipeline --- .pipelines/cg-pipeline.yaml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.pipelines/cg-pipeline.yaml b/.pipelines/cg-pipeline.yaml index 246a50b534..691d3669c4 100644 --- a/.pipelines/cg-pipeline.yaml +++ b/.pipelines/cg-pipeline.yaml @@ -215,27 +215,12 @@ stages: - checkout: self fetchTags: true - - task: DownloadPipelineArtifact@2 + - task: Docker@2 + displayName: Docker Login inputs: - buildType: "specific" - project: $(BUILDER_ADO_PROECT) - definition: $(BUILDER_ADO_DEFINITION_ID) # Replace with your build definition ID - buildId: $(BUILDER_ADO_BUILD_ID) - artifactName: $(BUILDER_ADO_ARTIFACTE_NAME) # Replace with your artifact name - itemPattern: "**/*builder*.tar" - downloadPath: '$(Pipeline.Workspace)\artifacts' - - - task: PowerShell@2 - displayName: "Load Builder Image" - inputs: - targetType: "inline" - script: | - $rootDir = "$(Pipeline.Workspace)\artifacts" - $dockerImages = Get-ChildItem -Path $rootDir -Recurse -Filter *.tar - foreach ($image in $dockerImages) { - Write-Host "Loading Docker image: $($image.FullName)" - docker load -i $image.FullName - } + containerRegistry: $(WINDOWS_BUILDER_REGISTRY) + command: "login" + addPipelineData: false - task: PowerShell@2 displayName: "Build Retina Windows Image (LTSC2022)"