diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index f82c905..100ed33 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -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 -} \ No newline at end of file +}