Files
spring-vault/ci/deploy-milestone.sh
Mark Paluch fe4fdecf48 Ship releases using Jenkins
See gh-719
2022-07-26 16:47:58 +02:00

20 lines
830 B
Bash
Executable File

#!/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