forked from strimzi/strimzi-kafka-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pushing of artifacts to Nexus (strimzi#913)
Signed-off-by: Jakub Scholz <[email protected]> Signed-off-by: Antonio Pedro <[email protected]>
- Loading branch information
1 parent
d0e4043
commit a7fe1cf
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "Build reason: ${BUILD_REASON}" | ||
echo "Source branch: ${BRANCH}" | ||
|
||
GPG_TTY=$(tty) | ||
export GPG_TTY | ||
function cleanup() { | ||
rm -rf signing.gpg | ||
gpg --delete-keys | ||
gpg --delete-secret-keys | ||
} | ||
|
||
# Run the cleanup on failure / exit | ||
trap cleanup EXIT | ||
|
||
echo "$GPG_SIGNING_KEY" | base64 -d > signing.gpg | ||
export GPG_TTY=$(tty) | ||
echo $GPG_SIGNING_KEY | base64 -d > signing.gpg | ||
gpg --batch --import signing.gpg | ||
|
||
GPG_EXECUTABLE=gpg mvn $MVN_ARGS -DskipTests -s ./.azure/scripts/settings.xml -P ossrh verify deploy | ||
|
||
rm -rf signing.gpg | ||
gpg --delete-keys | ||
gpg --delete-secret-keys | ||
cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters