From 80dd57433ce71e031d82baf1691d1a5d4a60364f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Fri, 7 Feb 2025 18:34:00 +0800 Subject: [PATCH] feat(pipeline): add installation of semantic-release requirements in SemanticReleasingExecutor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- .../src/com/freeleaps/devops/SemanticReleasingExecutor.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy index 4656615c..e9f81197 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy @@ -25,6 +25,8 @@ class SemanticReleasingExecutor { steps.dir(steps.env.workroot) { steps.writeFile file: 'releaserc.json', text: steps.libraryResource(config) + steps.log.info("SemanticReleasingExecutor", "Installing semantic-release requirements...") + steps.sh "apt-get -y update && apt-get install -y --no-install-recommends git apt-transport-https ca-certificates curl wget gnupg" steps.log.info("SemanticReleasingExecutor", "Installing semantic-release plugins...") steps.sh "npm install -g ${plugins.join(' ')}" steps.sh "semantic-release"