fix(semantic-release): add additional branch filter for rules
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
6c79018093
commit
d8d19fddd5
@ -1,5 +1,7 @@
|
||||
package com.freeleaps.devops
|
||||
|
||||
import java.net.URLEncoder
|
||||
|
||||
class SemanticReleasingExecutor {
|
||||
def steps
|
||||
def workspace
|
||||
@ -25,7 +27,9 @@ class SemanticReleasingExecutor {
|
||||
|
||||
steps.dir(steps.env.workroot) {
|
||||
steps.withCredentials([steps.usernamePassword(credentialsId: credentialsId, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
|
||||
steps.env.GIT_CREDENTIALS = "${steps.env.GIT_USERNAME}:${steps.env.GIT_PASSWORD}"
|
||||
def credentials = "${steps.env.GIT_USERNAME}:${steps.env.GIT_PASSWORD}"
|
||||
def encodedCredentials = URLEncoder.encode(credentials, 'UTF-8')
|
||||
steps.env.GIT_CREDENTIALS = encodedCredentials
|
||||
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