Fixed jenkins build
Locusworks Team/portal-webapp/pipeline/head This commit looks good

This commit is contained in:
iparenteau committed 2026-09-04 17:29:58 -05:00
1 parent d42aee62c7
commit 68058c16e6
3 files changed
+5 -5

No files matched your search

Vendored
+3 -3
View File
@@ -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"'
}
}