forked from atlassian/report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
42 lines (41 loc) · 1.04 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
image: openjdk:8
pipelines:
default:
- step:
name: Build project
caches:
- gradle
- gradlewrapper
script:
- bash ./gradlew build
- step:
name: Publish snapshot
caches:
- gradle
- gradlewrapper
trigger: manual
script:
- bash ./gradlew publish
branches:
master:
- step:
name: Build project
caches:
- gradle
- gradlewrapper
script:
- bash ./gradlew build
- step:
name: Release project
caches:
- gradle
- gradlewrapper
trigger: manual
script:
- git config --global user.email "[email protected]"
- git config --global user.name "Bitbucket Pipelines"
- bash ./gradlew release -Prelease.customKeyFile="/opt/atlassian/pipelines/agent/data/id_rsa"
- bash ./gradlew publish
definitions:
caches:
gradlewrapper: ~/.gradle/wrapper