fix(semantic-release): add additional branch filter for rules
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
d8d19fddd5
commit
d06a129f62
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user