From 6c790180939699fa1304a09783cb28ba1a0245f5 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Tue, 18 Feb 2025 04:21:53 +0800 Subject: [PATCH] fix(semantic-release): add additional branch filter for rules Signed-off-by: zhenyus --- .../src/com/freeleaps/devops/SemanticReleasingExecutor.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy index 911085f6..fbacba5d 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy @@ -33,7 +33,8 @@ class SemanticReleasingExecutor { steps.sh "npm install -g ${plugins.join(' ')}" steps.sh "git config --global --add safe.directory ${steps.env.workroot}" steps.sh "git branch --show-current" - steps.sh "semantic-release" + steps.sh "ls -la ." + steps.sh "semantic-release --debug" steps.log.info("SemanticReleasingExecutor", "Semantic release completed, read latest version from VERSION file") def released = steps.sh(script: 'test -f "VERSION"', returnStatus: true) == 0 if (released) {