From 0c4af99ee020b43c741c622fe3083d6c4174035d Mon Sep 17 00:00:00 2001 From: Gabe Stocco <98900+gfs@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:38:07 -0800 Subject: [PATCH 1/3] Append Job Id and Attempt to Pipeline Signed Artifacts If the pipeline fails during deployment the failed job cannot be rerun because this task will fail because the signed_binaries artifact already exists. However, the entire task also can't be re-run because the extensions have already been published by the time it hits this point. This PR adds a unique value so the failed job can be rerun in the case of temporary failures like API key rotations. --- Pipelines/cli/devskim-cli-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pipelines/cli/devskim-cli-release.yml b/Pipelines/cli/devskim-cli-release.yml index 67b23fe7..b8a5cb62 100644 --- a/Pipelines/cli/devskim-cli-release.yml +++ b/Pipelines/cli/devskim-cli-release.yml @@ -480,7 +480,7 @@ stages: displayName: Publish Signed Artifacts to Pipeline inputs: targetPath: '$(Build.StagingDirectory)' - artifact: 'Signed_Binaries' + artifact: 'Signed_Binaries_$(System.JobId)_$(System.JobAttempt)' - task: NuGetCommand@2 displayName: Publish NuGet Packages inputs: From 574de11b638e55c4b9f038a1a61de26b574a6cc1 Mon Sep 17 00:00:00 2001 From: Gabe Stocco <98900+gfs@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:39:08 -0800 Subject: [PATCH 2/3] Update Changelog.md --- Changelog.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index db0da4a5..781f1481 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.0.31] - 2024-1-28 +## [1.0.32] - 2024-3-04 +### Pipeline +Improvement to pipeline to allow rerunning failed deploy jobs. + +## [1.0.31] - 2024-2-28 ### Sarif Format Populate additional fields for GitHub Code scanning From feefaf61018c366ee6174b590affe8bc9a0c93b3 Mon Sep 17 00:00:00 2001 From: Gabe Stocco <98900+gfs@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:40:54 -0800 Subject: [PATCH 3/3] Add IDs to the extension runs as well. --- Pipelines/vs/devskim-visualstudio-release.yml | 2 +- Pipelines/vscode/devskim-vscode-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pipelines/vs/devskim-visualstudio-release.yml b/Pipelines/vs/devskim-visualstudio-release.yml index 31d93089..8390a61a 100644 --- a/Pipelines/vs/devskim-visualstudio-release.yml +++ b/Pipelines/vs/devskim-visualstudio-release.yml @@ -148,7 +148,7 @@ stages: displayName: Publish Signed Artifact to Pipeline inputs: targetPath: '$(Build.StagingDirectory)' - artifact: 'Signed_Extension' + artifact: 'Signed_Extension_$(System.JobId)_$(System.JobAttempt)' - task: PowerShell@2 displayName: Move VS Marketplace Manifest inputs: diff --git a/Pipelines/vscode/devskim-vscode-release.yml b/Pipelines/vscode/devskim-vscode-release.yml index 7489299c..02f6dd94 100644 --- a/Pipelines/vscode/devskim-vscode-release.yml +++ b/Pipelines/vscode/devskim-vscode-release.yml @@ -195,7 +195,7 @@ stages: displayName: Publish Signed Artifact to Pipeline inputs: targetPath: '$(Build.StagingDirectory)' - artifact: 'Signed_Plugin' + artifact: 'Signed_Plugin_$(System.JobId)_$(System.JobAttempt)' - task: Npm@1 displayName: Install vsce inputs: