Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Change conclusion getter
[releng/global-jjb.git]
/
shell
/
maven-central.sh
diff --git
a/shell/maven-central.sh
b/shell/maven-central.sh
index
da36d36
..
829c4dd
100644
(file)
--- a/
shell/maven-central.sh
+++ b/
shell/maven-central.sh
@@
-15,10
+15,18
@@
profile_id="${OSSRH_PROFILE_ID:-}"
# Ensure we fail the job if any steps fail.
set -eux -o pipefail
# Ensure we fail the job if any steps fail.
set -eux -o pipefail
+# shellcheck disable=SC1090
+. ~/lf-env.sh
+
+lf-activate-venv --python python3 lftools
+
MC_TMP_FILE="$(mktemp)"
echo "Staging in OSSRH for Maven Central"
lftools deploy nexus-stage "https://oss.sonatype.org" "$profile_id" "$WORKSPACE/m2repo" | tee "$MC_TMP_FILE"
mc_staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$MC_TMP_FILE")
rm -f "$MC_TMP_FILE"
MC_TMP_FILE="$(mktemp)"
echo "Staging in OSSRH for Maven Central"
lftools deploy nexus-stage "https://oss.sonatype.org" "$profile_id" "$WORKSPACE/m2repo" | tee "$MC_TMP_FILE"
mc_staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$MC_TMP_FILE")
rm -f "$MC_TMP_FILE"
-echo "$mc_staging_repo https://oss.sonatype.org/content/repositories/$mc_staging_repo" | tee -a "$WORKSPACE/archives/staging-repo.txt"
+# shellcheck disable=SC2140
+echo "$mc_staging_repo "\
+"https://oss.sonatype.org/content/repositories/$mc_staging_repo" | \
+ tee -a "$WORKSPACE/archives/staging-repo.txt"