forked from lulf/kafka-static-quota-plugin
-
Notifications
You must be signed in to change notification settings - Fork 18
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 (#51)
Signed-off-by: Jakub Scholz <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
5 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,15 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "Build reason: ${BUILD_REASON}" | ||
echo "Source branch: ${BRANCH}" | ||
|
||
export GPG_TTY=$(tty) | ||
function cleanup() { | ||
rm -rf signing.gpg | ||
gpg --delete-keys | ||
gpg --delete-secret-keys | ||
} | ||
|
||
# Run the cleanup on failure / exit | ||
trap cleanup EXIT | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,24 @@ | |
<organization>Red Hat</organization> | ||
<organizationUrl>https://www.redhat.com</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Paul Mellor</name> | ||
<email>[email protected]</email> | ||
<organization>Red Hat</organization> | ||
<organizationUrl>https://www.redhat.com</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Lukáš Král</name> | ||
<email>[email protected]</email> | ||
<organization>Red Hat</organization> | ||
<organizationUrl>https://www.redhat.com</organizationUrl> | ||
</developer> | ||
<developer> | ||
<name>Maroš Orsák</name> | ||
<email>[email protected]</email> | ||
<organization>Red Hat</organization> | ||
<organizationUrl>https://www.redhat.com</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<properties> | ||
|
@@ -90,7 +108,7 @@ | |
<checkstyle.version>9.2.1</checkstyle.version> | ||
<maven.spotbugs.version>4.5.3.0</maven.spotbugs.version> | ||
<spotbugs.version>4.7.2</spotbugs.version> | ||
<sonatype.nexus.staging>1.6.3</sonatype.nexus.staging> | ||
<sonatype.nexus.staging>1.7.0</sonatype.nexus.staging> | ||
<jacoco.version>0.7.9</jacoco.version> | ||
<license.maven.version>2.11</license.maven.version> | ||
<maven-jar-plugin.version>3.1.0</maven-jar-plugin.version> | ||
|