#!/bin/bash set -euo pipefail MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,milestone,artifactory,release \ -Dartifactory.server=https://repo.spring.io \ -Dartifactory.username=${ARTIFACTORY_USR} \ -Dartifactory.password=${ARTIFACTORY_PSW} \ -Dartifactory.staging-repository=libs-milestone-local \ -Dartifactory.build-name=spring-vault \ -Dartifactory.build-number=${BUILD_NUMBER} \ clean deploy -U -B MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pdistribute \ -Dartifactory.server=https://repo.spring.io \ -Dartifactory.username=${ARTIFACTORY_USR} \ -Dartifactory.password=${ARTIFACTORY_PSW} \ -Dartifactory.staging-repository=temp-private-local \ clean deploy -U -B