From 111b8f37ad74530ffaba1ed07593e6f3c58e837d Mon Sep 17 00:00:00 2001 From: pjacewicz Date: Wed, 29 Jul 2020 15:45:47 +0200 Subject: [PATCH] Jenkinsfile updated --- jenkins/deploy/Jenkinsfile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/jenkins/deploy/Jenkinsfile b/jenkins/deploy/Jenkinsfile index 9879f6353..b2cb5032d 100644 --- a/jenkins/deploy/Jenkinsfile +++ b/jenkins/deploy/Jenkinsfile @@ -21,24 +21,24 @@ pipeline { } } -// stage("Upload") { -// steps { -// configFileProvider([configFile(fileId: "iis-build-properties", variable: 'BUILD_PROPERTIES')]) { -// load "${BUILD_PROPERTIES}" -// withEnv(["JAVA_HOME=${ tool type: 'jdk', name: "${JDK_VERSION}" }", -// "PATH+MAVEN=${tool type: 'maven', name: "${MAVEN_VERSION}"}/bin:${env.JAVA_HOME}/bin"]) { -// sshagent(['iis-deployment-credentials']) { -// sh """ -// cd iis-wf/iis-wf-primary && \ -// mvn clean package -Poozie-package,deploy \ -// -Dworkflow.source.dir=eu/dnetlib/iis/wf/primary/main \ -// -DiisConnectionProperties=${WORKSPACE}/connection-properties/iis-cdh5-test-gw.properties -// """ -// } -// } -// } -// } -// } + stage("00-Upload-aggregatorGraph") { + steps { + configFileProvider([configFile(fileId: "dnet-hadoop-build.properties", variable: 'BUILD_PROPERTIES')]) { + load "${BUILD_PROPERTIES}" + withEnv(["JAVA_HOME=${ tool type: 'jdk', name: "${JDK_VERSION}" }", + "PATH+MAVEN=${tool type: 'maven', name: "${MAVEN_VERSION}"}/bin:${env.JAVA_HOME}/bin"]) { + sshagent(['dnet-hadoop-deployment-credentials']) { + sh """ + cd dhp-workflows/dhp-graph-mapper && \ + mvn clean package -Poozie-package,deploy \ + -Dworkflow.source.dir=eu/dnetlib/dhp/oa/graph/raw_all \ + -DdhpConnectionProperties=${WORKSPACE}/connection-properties/iis-cdh5-test-gw.properties + """ + } + } + } + } + } // stage("Deploy") { // steps {