From 19215383cc752f3693e0a6ed6633a3f9951d4a21 Mon Sep 17 00:00:00 2001 From: Jeremy Mordkoff Date: Wed, 6 Jul 2016 18:17:46 -0400 Subject: [PATCH] Make the return code handling obvious Signed-off-by: Jeremy Mordkoff --- jenkins/README | 14 ++++++++++++++ jenkins/host/start_build | 3 +++ jenkins/riftware/start_build | 6 +++++- jenkins/template/start_build | 4 +++- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/jenkins/README b/jenkins/README index e402befa..14e43b75 100644 --- a/jenkins/README +++ b/jenkins/README @@ -1,3 +1,17 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + This directory holds the scripts and tools needed by jenkins to run jobs The 'host' subdirectory is meant to be invoked directly by jenkins either in its own container or on the host. diff --git a/jenkins/host/start_build b/jenkins/host/start_build index 09f471bb..d6fbea8d 100755 --- a/jenkins/host/start_build +++ b/jenkins/host/start_build @@ -43,3 +43,6 @@ fi container_exec $OSM_BUILD_CONTAINER ./devops/jenkins/$OSM_MDG/start_build +RC=$? +INFO "$OSM_MDG build complete. Return code was $RC" +exit $RC diff --git a/jenkins/riftware/start_build b/jenkins/riftware/start_build index 80a4a1f0..a7826abe 100755 --- a/jenkins/riftware/start_build +++ b/jenkins/riftware/start_build @@ -36,7 +36,11 @@ else bash ./scripts/vm_image/mkvmimg --container --modes build fi -INFO "done" +INFO "no build script yet" +RC=1 + +INFO "done RC = $RC" +exit $RC diff --git a/jenkins/template/start_build b/jenkins/template/start_build index 2b006771..38f35b5b 100755 --- a/jenkins/template/start_build +++ b/jenkins/template/start_build @@ -43,7 +43,9 @@ INFO "starting build" ### put your commands here to ### build, test and produce coverage reports -INFO "done" +RC=0 +INFO "done, RC=$RC" +exit $RC -- 2.25.1