X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frelease-job.sh;h=5b163c89e06aff2342260110302f09877992c2e3;hb=729b2e3535f009a146719df7d7b52e036b2505cb;hp=ec59da09f7bb7cdd949bf83aa4eb1dc628f19a62;hpb=da7a332a3179b8b8ddb23f60086884af3dab1365;p=releng%2Fglobal-jjb.git diff --git a/shell/release-job.sh b/shell/release-job.sh index ec59da09..5b163c89 100644 --- a/shell/release-job.sh +++ b/shell/release-job.sh @@ -98,13 +98,20 @@ for release_file in $release_files; do git merge --ff-only FETCH_HEAD git tag -am "$PROJECT $VERSION" "$VERSION" sigul --batch -c "$SIGUL_CONFIG" sign-git-tag "$SIGUL_KEY" "$VERSION" < "$SIGUL_PASSWORD" + echo "Showing latest signature for $PROJECT:" - git log --show-signature -n1 + gpg --import /tmp/onap-pubkey + echo "git tag -v "$VERSION"" + git tag -v "$VERSION" ########## Merge Part ############## if [[ "$JOB_NAME" =~ "merge" ]]; then echo "Running merge" + gerrit_ssh=$(echo "$GERRIT_URL" | awk -F"/" '{print $3}') + git remote set-url origin ssh://"$RELEASE_USERNAME"@"$gerrit_ssh":29418/$PROJECT + git config user.name "$RELEASE_USERNAME" + git config user.email "$RELEASE_EMAIL" git push origin "$VERSION" lftools nexus release --server "$NEXUS_URL" "$STAGING_REPO" if [ "${MAVEN_CENTRAL_URL}" == 'None' ]; then