From: Jeremy Mordkoff Date: Wed, 6 Jul 2016 22:17:46 +0000 (-0400) Subject: Make the return code handling X-Git-Tag: v1.0.0~39 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F221%2F1;p=osm%2Fdevops.git Make the return code handling obvious Signed-off-by: Jeremy Mordkoff --- 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