Adjust resume condition.
This commit is contained in:
parent
27bf8aa941
commit
fbec8bc5db
|
@ -173,7 +173,7 @@ pipeline {
|
||||||
stage('build maven-parent') {
|
stage('build maven-parent') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
if ( ("${resume}" == 'true') && (jobs['maven-parent'] == 'SUCCESS') ) {
|
if (jobs['maven-parent'] == 'SUCCESS') {
|
||||||
echo "Skipping maven-parent"
|
echo "Skipping maven-parent"
|
||||||
// propagate success
|
// propagate success
|
||||||
sh "echo -e maven-parent,SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
sh "echo -e maven-parent,SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||||
|
@ -246,7 +246,7 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
||||||
parallel args.items?.collectEntries { name ->
|
parallel args.items?.collectEntries { name ->
|
||||||
["${name}": {
|
["${name}": {
|
||||||
if (name && !"NONE".equalsIgnoreCase(name)) {
|
if (name && !"NONE".equalsIgnoreCase(name)) {
|
||||||
if ( ("${resume}" == 'true') && (jobs["${name}"] == 'SUCCESS') ) {
|
if ( (jobs["${name}"] == 'SUCCESS') ) {
|
||||||
echo "Skipping ${name}"
|
echo "Skipping ${name}"
|
||||||
// propagate success
|
// propagate success
|
||||||
sh "echo -e ${name},SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
sh "echo -e ${name},SUCCESS >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||||
|
|
Loading…
Reference in New Issue