Update build.groovy
This commit is contained in:
parent
d37ae2f66b
commit
a0ec3304b2
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user