Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide STAGING_REPOSITORY_ID as an environment variable #561

Merged
merged 1 commit into from Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions .kokoro/release/drop.sh
Expand Up @@ -15,11 +15,18 @@

set -eo pipefail

source $(dirname "$0")/common.sh
# STAGING_REPOSITORY_ID must be set
if [ -z "${STAGING_REPOSITORY_ID}" ]; then
echo "Missing STAGING_REPOSITORY_ID environment variable"
exit 1
fi

source $(dirname "$0")/common.sh
pushd $(dirname "$0")/../../

setup_environment_secrets
create_settings_xml_file "settings.xml"

mvn nexus-staging:drop --settings=settings.xml
mvn nexus-staging:drop -B \
--settings=settings.xml \
-DstagingRepositoryId=${STAGING_REPOSITORY_ID}
11 changes: 10 additions & 1 deletion .kokoro/release/promote.sh
Expand Up @@ -15,11 +15,20 @@

set -eo pipefail

# STAGING_REPOSITORY_ID must be set
if [ -z "${STAGING_REPOSITORY_ID}" ]; then
echo "Missing STAGING_REPOSITORY_ID environment variable"
exit 1
fi

source $(dirname "$0")/common.sh

pushd $(dirname "$0")/../../

setup_environment_secrets
create_settings_xml_file "settings.xml"

mvn nexus-staging:release -DperformRelease=true --settings=settings.xml
mvn nexus-staging:release -B \
-DperformRelease=true \
--settings=settings.xml \
-DstagingRepositoryId=${STAGING_REPOSITORY_ID}