-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
57 lines (56 loc) · 1.74 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# bitbucket-pipelines.yml - Bitbucket Pipelines configuration
# Copyright (C) 2016-2018 Kaz Nishimura
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
# See <https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html>
# for details.
---
image: maven:3-ibmjava-8
pipelines:
default:
- step:
caches:
- maven
- java
script:
- export MAVEN_OPTS="-Xshareclasses -Xquickstart"
- mvn -B -s etc/settings.xml test
branches:
production:
- step:
deployment: production
caches:
- maven
script:
- export GNUPGHOME=`mktemp -d`
- sh etc/gpginit.sh
- export MAVEN_OPTS="-Xquickstart"
- mvn -B -s etc/settings.xml ${OSSRHUSERNAME+-P ossrh} -Dmaven.deploy.skip deploy
bookmarks:
staging:
- step:
deployment: staging
caches:
- maven
script:
- export GNUPGHOME=`mktemp -d`
- sh etc/gpginit.sh
- export MAVEN_OPTS="-Xquickstart"
- mvn -B -s etc/settings.xml ${OSSRHUSERNAME+-P ossrh} -Dmaven.deploy.skip deploy
master:
- step:
deployment: test
caches:
- maven
script:
- export GNUPGHOME=`mktemp -d`
- sh etc/gpginit.sh
- export MAVEN_OPTS="-Xquickstart"
- mvn -B -s etc/settings.xml ${OSSRHUSERNAME+-P ossrh} install
artifacts:
- target/*
definitions:
caches:
java: /tmp/javasharedresources