Introduces pipeline that replaces the Bamboo Spring HATEOAS one which builds on master branch and deploys to artifactory. Additionally: * Tests against JDK 8 before doing the final build and deploy. * No JDK 11+ support. * Also handles pull requests.
15 lines
409 B
Bash
Executable File
15 lines
409 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
|
|
|
|
spring_hateoas_artifactory=$(pwd)/spring-hateoas-artifactory
|
|
|
|
rm -rf $HOME/.m2/repository/org/springframework/hateoas 2> /dev/null || :
|
|
|
|
cd spring-hateoas-github
|
|
|
|
./mvnw -Pdistribute -Dmaven.test.skip=true clean deploy \
|
|
-DaltDeploymentRepository=distribution::default::file://${spring_hateoas_artifactory}
|