-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
34 lines (30 loc) · 985 Bytes
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
image: maven:3.6.1
definitions:
steps:
- step: &release
name: release
trigger: manual
services:
- docker
script:
- pipe: atlassian/artifactory-sidekick:v1
- source .artifactory/activate.sh
- mvn --batch-mode deploy -DskipTests=true -Dversion=1.${BITBUCKET_BUILD_NUMBER}.0
- step: &run-tests
name: run-tests
caches:
- maven
script:
- pipe: atlassian/artifactory-sidekick:v1
# Install the config files to the home directory and add env vars
- source .artifactory/activate.sh
# The script puts a settings.xml in the home directory so you can use mvn immediately
- bash bin/configure-pipelines.sh
- mvn -B verify -Dversion=1.${BITBUCKET_BUILD_NUMBER} # -B batch mode makes Maven less verbose
pipelines:
default:
- step: *run-tests
branches:
master:
- step: *run-tests
- step: *release