1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

Provide defaults

This commit is contained in:
Marcus Holl 2019-07-16 15:45:08 +02:00
parent 96758a8c75
commit 2f7fa6e4a4
2 changed files with 5 additions and 2 deletions

View File

@ -57,6 +57,9 @@ steps:
tagPrefix: 'build_'
commitVersion: true
gitPushMode: 'SSH'
debug: false
gitHttpsCredentialsId: 'git'
gitDisableSslVerification: false
dub:
filePath: 'dub.json'
versioningTemplate: '${version}-${timestamp}${commitId?"+"+commitId:""}'

View File

@ -57,7 +57,7 @@ enum GitPushMode {NONE, HTTPS, SSH}
*/
'gitSshKeyCredentialsId',
/** */
'gitCredentialsId',
'gitHttpsCredentialsId',
/**
* Allows to overwrite the global git setting 'user.email' available on your Jenkins server.
*/
@ -221,7 +221,7 @@ void call(Map parameters = [:], Closure body = null) {
.use()
withCredentials([usernamePassword(
credentialsId: config.gitCredentialsId,
credentialsId: config.gitHttpsCredentialsId,
passwordVariable: 'PASSWORD',
usernameVariable: 'USERNAME')]) {