From 277175ed0d5bedc87e18a41de8b2e44a5636d62e Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Wed, 7 Jun 2017 14:42:27 -0400 Subject: Setup for build status propagation to dispatch job --- jenkins/dispatch.groovy | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'jenkins/dispatch.groovy') diff --git a/jenkins/dispatch.groovy b/jenkins/dispatch.groovy index f05d906..6d37274 100644 --- a/jenkins/dispatch.groovy +++ b/jenkins/dispatch.groovy @@ -15,6 +15,8 @@ this.utils_dir = "utils" this.recipes_dir = "conda-recipes" +this.build_status_file = "propagated_build_status" + // The conda installer script to use for various combinations. this.conda_installers = ["Linux-py2.7":"Miniconda2-${CONDA_VERSION}-Linux-x86_64.sh", "Linux-py3.5":"Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh", @@ -195,6 +197,10 @@ node(LABEL) { this.build_list = build_list_text.trim().tokenize() println("Build list:") println(build_list_text) + + // Write build status file to facilitate build status propagation + // from child jobs. + sh "echo SUCCESS > ${this.build_status_file}" } stage("Build packages") { @@ -210,6 +216,9 @@ node(LABEL) { string(name: "channel_URL", value: this.manifest.channel_URL)], propagate: false } + // Set overall status to that propagated from individual jobs. + // This will be the most severe status encountered in all sub jobs. + currentBuild.result = readFile this.build_status_file } } -- cgit