From 3d3472652b0e842ef7f4db7480378846525f5a98 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 11 Aug 2025 18:03:41 +0200 Subject: [PATCH] Fix extension archiving error when no extensions are configured (#162) * Initial plan * Fix extension archiving when no extensions configured Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com> * Remove redundant needLoadExtensions() check in GetExtensions.groovy Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com> * Remove redundant needLoadExtensions() check in extractConvertedExtensions Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com> --- .../steps/EdtToDesignerFormatTransformation.groovy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ru/pulsar/jenkins/library/steps/EdtToDesignerFormatTransformation.groovy b/src/ru/pulsar/jenkins/library/steps/EdtToDesignerFormatTransformation.groovy index 13f5af0..2c2d177 100644 --- a/src/ru/pulsar/jenkins/library/steps/EdtToDesignerFormatTransformation.groovy +++ b/src/ru/pulsar/jenkins/library/steps/EdtToDesignerFormatTransformation.groovy @@ -45,9 +45,11 @@ class EdtToDesignerFormatTransformation implements Serializable { steps.zip(CONFIGURATION_DIR, CONFIGURATION_ZIP) steps.stash(CONFIGURATION_ZIP_STASH, CONFIGURATION_ZIP) - engine.edtToDesignerTransformExtensions(steps, config) - steps.zip(EXTENSION_DIR, EXTENSION_ZIP) - steps.stash(EXTENSION_ZIP_STASH, EXTENSION_ZIP) + if (config.needLoadExtensions()) { + engine.edtToDesignerTransformExtensions(steps, config) + steps.zip(EXTENSION_DIR, EXTENSION_ZIP) + steps.stash(EXTENSION_ZIP_STASH, EXTENSION_ZIP) + } }