Update build.groovy

This commit is contained in:
Andy Sotheran 2020-02-12 17:53:21 +00:00 committed by GitHub
parent d37ae2f66b
commit a0ec3304b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,12 @@ String get_application_version() {
}
try {
timestamps {
node ("${env.SLAVE_LABEL}") {
stage('Initialise') {
git url: env.GIT_REPOSITORY_URL, branch: env.GIT_BRANCH, credentialsId: env.GITHUB_CREDENTIALS_ID
checkout([$class: 'GitSCM', branches: [[name: 'master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'Github', url: 'https://github.com/andyjk15/db-gateway.git']]])
//git url: env.GIT_REPOSITORY_URL, branch: env.GIT_BRANCH, credentialsId: env.GITHUB_CREDENTIALS_ID
env.APPLICATION_VERSION = get_application_version()
@ -68,6 +71,7 @@ try {
}
}
}
}
} catch ( exception ) {
throw exception
}