X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-plt-lib-rmr%2Fshell%2Fcopy-rmr-packages.sh;fp=jjb%2Fric-plt-lib-rmr%2Fshell%2Fcopy-rmr-packages.sh;h=0000000000000000000000000000000000000000;hb=2cd087b58f0f5524b794eda8f4d5290cacb22ed1;hp=c13c62077d2d579f1e215f5710429730027cae92;hpb=c9e1609a48fa65dcd27413f27d01f29ce634b1f1;p=ci-management.git diff --git a/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh b/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh deleted file mode 100755 index c13c6207..00000000 --- a/jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -l -# use login flag to get $HOME/.local/bin in PATH -# bcos pip installs yq to $HOME/.local/bin - -#================================================================================== -# Copyright (c) 2019 Nokia -# Copyright (c) 2018-2019 AT&T Intellectual Property. -# -# 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. -#================================================================================== - -set -eux -o pipefail -echo "--> copy-rmr-packages.sh" - -# extracts artifacts created by the builder -# file with paths of generated deb, rpm packages -pkgs="build_packages.yml" - -# access builder files within a container created by running a trivial command -# environment variables are injected in previous Jenkins steps -container=$(docker run -d "$CONTAINER_PUSH_REGISTRY"/"$DOCKER_NAME":"$DOCKER_IMAGE_TAG" ls) -docker cp "${container}:/tmp/${pkgs}" . - -count=$(yq -r '.files | length' $pkgs) -# modern bash syntax is helpful -for (( i = 0; i < count; i++ )); do - file=$(yq -r ".files[$i]" "$pkgs") - docker cp "$container":"$file" . - base=$(basename "$file") - echo "Push file $base" # TODO -done