diff --git a/jenkins/README b/jenkins/README index e402befa046cbbc390028c8351c195e406b216ba..14e43b756189c1946ab2a74ab61836f975161d58 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 09f471bb4bcbf482dae63dbd712aad0694386605..d6fbea8d99bffd4f8e6c8ad9452fc0460df420d3 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 80a4a1f0bad66d895e756d56ee5e6a6c77b7869a..a7826abe8d5aaee76fcbe4e1d670dc64e8d8be1f 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 2b006771cb4b3b5cbe8ea73182181c1da7a6711b..38f35b5bd3d64c5a0027b216d723783361be3546 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