From d06a129f62b1ae48414d520c428199f98d449d73 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Tue, 18 Feb 2025 05:03:57 +0800 Subject: [PATCH] fix(semantic-release): add additional branch filter for rules Signed-off-by: zhenyus --- .../com/freeleaps/devops/SemanticReleasingExecutor.groovy | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy index 2c306ce2..e0b9bf77 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/SemanticReleasingExecutor.groovy @@ -1,7 +1,5 @@ package com.freeleaps.devops -import java.net.URLEncoder - class SemanticReleasingExecutor { def steps def workspace @@ -27,9 +25,7 @@ class SemanticReleasingExecutor { steps.dir(steps.env.workroot) { steps.withCredentials([steps.usernamePassword(credentialsId: credentialsId, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { - def credentials = "${steps.env.GIT_USERNAME}:${steps.env.GIT_PASSWORD}" - def encodedCredentials = URLEncoder.encode(credentials, 'UTF-8') - steps.env.GIT_CREDENTIALS = encodedCredentials + steps.env.GIT_TOKENS = "${steps.env.GIT_PASSWORD}" 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"