Fix OS_CLOUD export for image validation
[releng/global-jjb.git] / shell / maven-stage.sh
index 60949ac..63d3f1e 100644 (file)
@@ -8,7 +8,7 @@
 # which accompanies this distribution, and is available at
 # http://www.eclipse.org/legal/epl-v10.html
 ##############################################################################
-
+echo "---> maven-stage.sh"
 # This script publishes artifacts to a staging repo in Nexus.
 #
 # $WORKSPACE/m2repo   :  Exists and used to deploy the staging repository.
@@ -22,6 +22,9 @@ 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")
 
+echo "INFO: Verify Nexus staging repository is closed"
+lftools nexus release -v --server "$NEXUS_URL" "$staging_repo"
+
 # Store repo info to a file in archives
 mkdir -p "$WORKSPACE/archives"
 echo "$staging_repo ${NEXUS_URL}/content/repositories/$staging_repo" | tee -a "$WORKSPACE/archives/staging-repo.txt"