Comment most of the logic for testing purposes.

This commit is contained in:
Manuele Simi 2019-09-01 22:32:36 -04:00
parent faef4318b7
commit 5366918b57
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import groovy.json.JsonSlurper
import groovy.io.FileType
//locate where this jenkinsfile is
String releaseURL = "https://code-repo.d4science.org/gCubeCI/gCubeRelease/raw/branch/feature/17273/releases/gcube-${params.gCube_release_number}.json"
@ -11,7 +10,7 @@ def gcubeJSON = new JsonSlurper().parseText(text)
//check that the release number parameter is the one expected
assert gcubeJSON["gCube.version"] == params.gCube_release_number : "Release versions do not match!"
/*
// set the build options according to the Type of build
def (options,maven_local_repo_path,maven_settings_file) = ['','','']
def maven_jdk = 'OpenJDK 8'
@ -54,13 +53,12 @@ echo "Use local repo at ${maven_local_repo_path}"
echo "Release number: ${params.gCube_release_number}"
//def components = gcubeJSON['Components']
*/
pipeline {
// see https://jenkins.io/doc/book/pipeline/syntax/#agent
agent any
// see https://jenkins.io/doc/book/pipeline/syntax/#environment
environment {
JOB_OPTIONS = "${options}"
MAVEN_LOCAL_REPO = "${maven_local_repo_path}"
GCUBE_RELEASE_NUMBER = "${params.gCube_release_number}"