X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fshell%2Fmake-tar.sh;h=adc830d010d294093178f2cbf2f516665e9c7850;hp=2e8819af6700a059d07b6bc691cb3c8280bb77bc;hb=683452330b0784c355d032aae4454674d7fdc60e;hpb=d8204890c2a319e93a4ada6ad8d2210cc336e1dd diff --git a/jjb/shell/make-tar.sh b/jjb/shell/make-tar.sh index 2e8819a..adc830d 100644 --- a/jjb/shell/make-tar.sh +++ b/jjb/shell/make-tar.sh @@ -1,4 +1,4 @@ -#!/bin/bash -l +#!/bin/bash # # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. # @@ -14,8 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -echo "---> make-tar.sh" - sudo yum install -y dos2unix # shellcheck source="$WORKSPACE/version.properties" disable=SC1091 dos2unix "${WORKSPACE}/version.properties" @@ -49,29 +47,25 @@ then # Build the regional controller scripts tar ball ARTIFACT_NAME="onap-amsterdam-regional-controller-${STREAM}" TAR_NAME="${ARTIFACT_NAME}-${VERSION}.tgz" - echo "---> Making tar file ${TARDIR}/${TAR_NAME}" + echo "Making tar file ${TARDIR}/${TAR_NAME}" cd ./src/regional_controller_scripts/ tar -cvzf "${TARDIR}/${TAR_NAME}" -- * # Build the ONAP VM scripts tar ball ARTIFACT_NAME="onap-amsterdam-VM-${STREAM}" TAR_NAME="${ARTIFACT_NAME}-${VERSION}.tgz" - echo "---> Making tar file ${TARDIR}/${TAR_NAME}" + echo "Making tar file ${TARDIR}/${TAR_NAME}" cd ../onap_vm_scripts/ tar -cvzf "${TARDIR}/${TAR_NAME}" -- * else TAR_NAME="${PROJECT}-${VERSION}.tgz" - echo "---> Making tar file ${TARDIR}/${TAR_NAME}" + echo "Making tar file ${TARDIR}/${TAR_NAME}" # Put the file in /tmp initially to prevent it $TARDIR from going into the tar file tar -cvzf "/tmp/${TAR_NAME}" -- * mkdir "$TARDIR" cp "/tmp/${TAR_NAME}" "${TARDIR}/${TAR_NAME}" fi - -echo "-----> Sign all artifacts" -lftools sign sigul "${TARDIR}" - set +u +x