fix(semantic-release): add additional branch filter for rules
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
4a068d9b9c
commit
e1bdb89ce6
@ -34,6 +34,9 @@ class SemanticReleasingExecutor {
|
||||
steps.log.info("SemanticReleasingExecutor", "Installing semantic-release plugins...")
|
||||
steps.sh "npm install -g ${plugins.join(' ')}"
|
||||
steps.sh "git config --global --add safe.directory ${steps.env.workroot}"
|
||||
// TODO: Workaround for semantic-release not committing changes
|
||||
steps.sh "git config user.name \"freeleaps-gitops-bot\""
|
||||
steps.sh "git config user.email \"gitops@mathmast.com\""
|
||||
steps.sh "semantic-release --debug --no-ci"
|
||||
steps.log.info("SemanticReleasingExecutor", "Semantic release completed, read latest version from VERSION file")
|
||||
def released = steps.sh(script: 'test -f "VERSION"', returnStatus: true) == 0
|
||||
@ -41,8 +44,6 @@ class SemanticReleasingExecutor {
|
||||
steps.env.LATEST_VERSION = steps.readFile('VERSION').trim()
|
||||
steps.env.SEMANTIC_RELEASED = true
|
||||
// TODO: Workaround for semantic-release not committing changes
|
||||
steps.sh "git config user.name \"freeleaps-gitops-bot\""
|
||||
steps.sh "git config user.email \"gitops@mathmast.com\""
|
||||
def repoUrl = steps.sh(script: 'git config --get remote.origin.url', returnStdout: true).trim()
|
||||
steps.sh "git remote add ci_origin ${repoUrl}"
|
||||
steps.sh "git push ci_origin HEAD:master"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user