Skip to content

Commit

Permalink
ci: test with new maven creds
Browse files Browse the repository at this point in the history
  • Loading branch information
zgtm committed Dec 19, 2024
1 parent dce1bd8 commit 2cd6873
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ JAZZER_COORDINATES=$1
echo "$RELEASE_SIGNING_KEY_PRIVATE" | gpg --import
echo "default-key $RELEASE_SIGNING_KEY_ID" > $HOME/.gnupg/gpg.conf

[ -z "${MAVEN_USER+x}" ] && \
[ -z "${MAVEN_USER_TEST_NEW_CREDS+x}" ] && \
fail "Set MAVEN_USER to the Sonatype OSSRH user"
[ -z "${MAVEN_PASSWORD+x}" ] && \
[ -z "${MAVEN_PASSWORD_TEST_NEW_CREDS+x}" ] && \
fail "Set MAVEN_PASSWORD to the Sonatype OSSRH password"
[ -z "${JAZZER_JAR_PATH+x}" ] && \
fail "Set JAZZER_JAR_PATH to the absolute path of jazzer.jar obtained from the release GitHub Actions workflow"
Expand Down Expand Up @@ -67,12 +67,12 @@ JAZZER_DOCS_PATH=$PWD/$(bazel cquery --output=files //deploy:jazzer-docs)
JAZZER_SOURCES_PATH=$PWD/$(bazel cquery --output=files //deploy:jazzer-sources)
JAZZER_POM_PATH=$PWD/$(bazel cquery --output=files //deploy:jazzer-pom)

bazel run --define "maven_repo=${MAVEN_REPO}" --define "maven_user=${MAVEN_USER}" \
--define "maven_password=${MAVEN_PASSWORD}" --define gpg_sign=true \
bazel run --define "maven_repo=${MAVEN_REPO}" --define "maven_user=${MAVEN_USER_TEST_NEW_CREDS}" \
--define "maven_password=${MAVEN_PASSWORD_TEST_NEW_CREDS}" --define gpg_sign=true \
//deploy:jazzer-api.publish
MAVEN_REPO="$MAVEN_REPO" GPG_SIGN="true" MAVEN_USER="$MAVEN_USER" MAVEN_PASSWORD="$MAVEN_PASSWORD" \
bazel run @rules_jvm_external//private/tools/java/com/github/bazelbuild/rules_jvm_external/maven:MavenPublisher -- \
"$JAZZER_COORDINATES" "$JAZZER_POM_PATH" "$JAZZER_JAR_PATH" "sources=${JAZZER_SOURCES_PATH},javadoc=${JAZZER_DOCS_PATH}"
bazel run --define "maven_repo=${MAVEN_REPO}" --define "maven_user=${MAVEN_USER}" \
--define "maven_password=${MAVEN_PASSWORD}" --define gpg_sign=true \
bazel run --define "maven_repo=${MAVEN_REPO}" --define "maven_user=${MAVEN_USER_TEST_NEW_CREDS}" \
--define "maven_password=${MAVEN_PASSWORD_TEST_NEW_CREDS}" --define gpg_sign=true \
//deploy:jazzer-junit.publish

0 comments on commit 2cd6873

Please sign in to comment.