X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fshell%2Fta-iso-deploy.sh;h=9525e8ab79dc57b21e0a47fc071125fa52206b1d;hp=705ac3c6bd127db79c440a48f20c1a60558f7689;hb=0904fdd5e0e3b113ee90e77c646a7f156d878762;hpb=0f396c52b140bc5279ea38c2c93b603d5d4c79a3 diff --git a/jjb/shell/ta-iso-deploy.sh b/jjb/shell/ta-iso-deploy.sh index 705ac3c..9525e8a 100644 --- a/jjb/shell/ta-iso-deploy.sh +++ b/jjb/shell/ta-iso-deploy.sh @@ -19,11 +19,11 @@ set -x # Trace commands for this script to make debugging easier. set +f # Ensure filename expansion (globbing) is enabled NEXUS_REPO=images-snapshots -release_path=TA/release-1 +release_path=TA/images/${JOB_NAME##*-} repo_dir="$WORKSPACE/work/nexus/$NEXUS_REPO" -upload_dir1="$repo_dir/$release_path/images/$BUILD_ID" -upload_dir2="$repo_dir/$release_path/images/latest" +upload_dir1="$repo_dir/$release_path/$BUILD_ID" +upload_dir2="$repo_dir/$release_path/latest" nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO" mkdir -p "$upload_dir1" @@ -41,8 +41,12 @@ fi cp "$WORKSPACE/work/results/images/"* "$upload_dir1" cp "$WORKSPACE/work/results/images/"* "$upload_dir2" +echo "-----> Sign all artifacts" +lftools sign sigul "$repo_dir" + echo "-----> Upload ISOs to Nexus" lftools deploy nexus "$nexus_repo_url" "$repo_dir" +rm -rf "$repo_dir" set +x # Disable trace since we no longer need it. echo "ISOs location: $nexus_repo_url"