#!/bin/bash -e # OTHER REQUIRED ENVIRONMENT VARIABLES: # REVISION = # OTHER ENVIRONMENT VARIABLES: # API_TYPE = # Check variables correctness if [ -z "${REVISION}" ]; then echo "Missing parameter: REVISION" exit 1 fi source ./setup-variables.sh FALLBACK_API_TYPE="sealed" if [ -z "${API_TYPE}" ]; then cd ../../generated else cd "../../generated-${API_TYPE}" fi mvn -B -DrevisionNumber="${REVISION}" "-D${API_TYPE:-${FALLBACK_API_TYPE}}" -DrevisionSuffix="" clean deploy echo "Done." exit 0