# Continuing displaying Release Information (Maven)
printf "\t%-30s\n" RELEASE_MAVEN_INFO:
printf "\t%-30s %s\n" VERSION: $VERSION
- printf "\t%-30s %s\n" LOG DIR: $LOG_DIR
- printf "\t%-30s %s\n" LOGS URL: $LOGS_URL
+ printf "\t%-30s %s\n" LOG_DIR: $LOG_DIR
+ printf "\t%-30s %s\n" LOGS_URL: $LOGS_URL
}
set_variables_container(){
fi
}
+verify_version_match_release(){
+ wget -P /tmp "${LOGS_URL}/"console.log.gz
+ echo "INFO: Comparing version $VERSION with log snippet from maven-stage:"
+ if zgrep "Successfully uploaded" /tmp/console.log.gz | grep "$VERSION"; then
+ echo "INFO: version $VERSION matches maven-stage artifacts"
+ else
+ echo "ERROR: Defined version in release file does not match staging repo artifacts version to be released"
+ echo " Please make sure maven-stage job selected as candidate and release version are correct"
+ exit 1
+ fi
+}
+
tag(){
# Import public signing key
gpg --import "$SIGNING_PUBKEY"
fi
set_variables_maven
verify_version
+ verify_version_match_release
maven_release_file
elif [[ "$DISTRIBUTION_TYPE" == "container" ]]; then
wget -q https://raw.githubusercontent.com/lfit/releng-global-jjb/master/schema/release-container-schema.yaml