Change-Id: If8d2208e2469d295637a9e82545b2289e5a7588b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Calls the maven deploy script to push artifacts to Nexus.
Calls the maven deploy script to push artifacts to Nexus.
+lf-maven-stage
+---------------
+
+Calls the maven stage script to push artifacts to a Nexus staging repository.
+
Job Templates
=============
Job Templates
=============
- ../shell/common-variables.sh
- ../shell/maven-deploy.sh
- ../shell/common-variables.sh
- ../shell/maven-deploy.sh
+- builder:
+ name: lf-maven-stage
+ builders:
+ - shell: !include-raw-escape:
+ - ../shell/common-variables.sh
+ - ../shell/maven-stage.sh
+
- builder:
name: lf-update-java-alternatives
builders:
- builder:
name: lf-update-java-alternatives
builders:
- ../shell/common-variables.sh
- ../shell/maven-patch-release.sh
- ../shell/maven-build.sh
- ../shell/common-variables.sh
- ../shell/maven-patch-release.sh
- ../shell/maven-build.sh
- - ../shell/maven-stage.sh
- lf-provide-maven-settings-cleanup
- job-template:
- lf-provide-maven-settings-cleanup
- job-template:
# Ensure we fail the job if any steps fail.
set -xeu -o pipefail
# Ensure we fail the job if any steps fail.
set -xeu -o pipefail
TMP_FILE="$(mktemp)"
lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"
staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE")
TMP_FILE="$(mktemp)"
lftools deploy nexus-stage "$NEXUS_URL" "$STAGING_PROFILE_ID" "$WORKSPACE/m2repo" | tee "$TMP_FILE"
staging_repo=$(sed -n -e 's/Staging repository \(.*\) created\./\1/p' "$TMP_FILE")