From b93b489e6db200d77db597201046543aeba2fca8 Mon Sep 17 00:00:00 2001 From: Adrian Date: Wed, 13 Aug 2025 11:16:15 -0600 Subject: [PATCH 1/2] adding template context --- .azure-pipelines/ci-build.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 842fca8f663..27b34adc5a4 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -118,16 +118,18 @@ extends: - deployment: 'DeployToInternalFeed' displayName: 'Deploy to Internal Feed' environment: 'PowerShellInternalFeed' + templateContext: + type: releaseJob + isProduction: true + inputs: + - input: pipelineArtifact + artifactName: drop + targetPath: '$(System.DefaultWorkingDirectory)/drop' strategy: runOnce: deploy: steps: - checkout: self - - task: DownloadPipelineArtifact@2 - displayName: 'Download Build Artifacts' - inputs: - buildType: 'current' - targetPath: '$(System.DefaultWorkingDirectory)' - task: 1ES.PublishNuget@1 displayName: 'Publish NuGet to feed' inputs: @@ -144,16 +146,18 @@ extends: - deployment: 'DeployToPowerShellGallery' displayName: 'Deploy to PowerShell Gallery' environment: 'PowerShellGallery' + templateContext: + type: releaseJob + isProduction: true + inputs: + - input: pipelineArtifact + artifactName: drop + targetPath: '$(System.DefaultWorkingDirectory)/drop' strategy: runOnce: deploy: steps: - checkout: self - - task: DownloadPipelineArtifact@2 - displayName: 'Download Build Artifacts' - inputs: - buildType: 'current' - targetPath: '$(System.DefaultWorkingDirectory)' - task: 1ES.PublishNuget@1 displayName: 'Publish NuGet to feed' inputs: From b70669d6353fc814d53a7d2437da988355692d87 Mon Sep 17 00:00:00 2001 From: Adrian Date: Wed, 13 Aug 2025 11:27:31 -0600 Subject: [PATCH 2/2] removing checkout --- .azure-pipelines/ci-build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 27b34adc5a4..2997b46cd26 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -129,7 +129,6 @@ extends: runOnce: deploy: steps: - - checkout: self - task: 1ES.PublishNuget@1 displayName: 'Publish NuGet to feed' inputs: @@ -157,7 +156,6 @@ extends: runOnce: deploy: steps: - - checkout: self - task: 1ES.PublishNuget@1 displayName: 'Publish NuGet to feed' inputs: