Restore resume parameter.

This commit is contained in:
Manuele Simi 2019-12-09 15:23:03 -05:00
parent f19fb497fb
commit c97451b1a6
1 changed files with 9 additions and 1 deletions

10
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@ import org.yaml.snakeyaml.Yaml
def (options, maven_local_repo_path, maven_settings_file, maven_parent_file) = ['', '', '', '']
def agent_root_folder = '/var/lib/jenkins/.m2'
def verbose = true
def resume = ${params.resume}
if (params.Type == 'SNAPSHOT-DRY-RUN') {
echo "Configure Maven for SNAPSHOT-DRY-RUN artifacts"
options = ''
@ -47,6 +47,7 @@ echo "Use local repo at ${maven_local_repo_path}"
echo "Release number: ${params.gCube_release_version}"
echo "Clean up gcube local artifacts? ${params.cleanup_gcube_artifacts}"
echo "Clean up all local artifacts? ${params.cleanup_local_repo}"
echo "Resume from previous build? ${params.resume}"
//locate the release file
@ -90,6 +91,9 @@ pipeline {
GCUBE_RELEASE_NUMBER = "${params.gCube_release_version}"
PIPELINE_BUILD_NUMBER = "${env.BUILD_NUMBER}"
TYPE = "${params.Type}"
RESUME = "${params.resume}"
JOB_REPORT = "${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
PREVIOUS_JOB_REPORT = "${agent_root_folder}/build_jobs.${env.BUILD_NUMBER -1}.csv"
}
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
@ -109,6 +113,10 @@ pipeline {
booleanParam(name: 'cleanup_local_repo',
defaultValue: true,
description: 'Wipe out the local maven repository before the builds?')
booleanParam(name: 'resume',
defaultValue: false,
description: 'Resume from previous build?')
}
//see https://jenkins.io/doc/book/pipeline/syntax/#stages