From a0ec3304b234d1bc22ca311474d178e205caf418 Mon Sep 17 00:00:00 2001 From: Andy Sotheran Date: Wed, 12 Feb 2020 17:53:21 +0000 Subject: [PATCH] Update build.groovy --- configuration/pipelines/build.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 +}