-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbitbucket-pipelines.yml
48 lines (47 loc) · 1.18 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
image: gradle:7.6.2-jdk17
options:
size: 2x
# Alias definitions.
aliases:
- &sidekick
pipe: atlassian/artifactory-sidekick:v1
- &setup_artifactory_script >
source .artifactory/activate.sh
definitions:
steps:
- step: &build-re-actor-library
name: Build and test re-actor Library
caches:
- gradle
- docker
script:
- set -euf
- *sidekick
- *setup_artifactory_script
- ./gradlew build
artifacts:
- re-actor/build/**
- step: &re-actor-library-version-release
name: Publish re-actor to Atlassian Repository
trigger: manual
caches:
- docker
script:
- set -euf
- *sidekick
- *setup_artifactory_script
- ./gradlew publish -i
artifacts:
- re-actor/build/**
# Bitbucket Pipelines Configuration.
pipelines:
branches:
master:
- step: *build-re-actor-library
# Default pipelines to be run on branch builds.
default:
- step: *build-re-actor-library
custom:
release re-actor library:
- step: *build-re-actor-library
- step: *re-actor-library-version-release