This commit is contained in:
1 parent
d42aee62c7
commit
68058c16e6
3 files changed
+5
-5
No files matched your search
Vendored
+3
-3
@@ -71,8 +71,8 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
String gitCredentials = scm.userRemoteConfigs[0].credentialsId
|
||||
if (!gitCredentials) { error('Release builds require an SCM SSH credential with permission to push tags') }
|
||||
sshagent(credentials: [gitCredentials]) {
|
||||
if (!gitCredentials) { error('Release builds require an SCM HTTPS username/password credential with permission to push tags') }
|
||||
withCredentials([gitUsernamePassword(credentialsId: gitCredentials, gitToolName: scm.gitTool ?: 'Default')]) {
|
||||
sh 'mkdir -p target && sh scripts/release-notes.sh generate "$BUILD_VERSION" > target/release-notes.md'
|
||||
}
|
||||
}
|
||||
@@ -102,7 +102,7 @@ pipeline {
|
||||
when { branch pattern: 'release/**', comparator: 'GLOB' }
|
||||
steps {
|
||||
script {
|
||||
sshagent(credentials: [scm.userRemoteConfigs[0].credentialsId]) {
|
||||
withCredentials([gitUsernamePassword(credentialsId: scm.userRemoteConfigs[0].credentialsId, gitToolName: scm.gitTool ?: 'Default')]) {
|
||||
sh 'sh scripts/release-notes.sh publish "$BUILD_VERSION"'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user