-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbitbucket-pipelines.yml
40 lines (37 loc) · 1.24 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
image: openjdk:17
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
definitions:
caches:
gradle: ~/.gradle/caches # Caching SonarCloud artifacts will speed up your build
steps:
- step: &test-build
name: test unit and build
caches:
- gradle
script:
- ./gradlew build
artifacts:
- build/libs/**
pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
branches:
master:
- step: *test-build
test:
- step: *test-build
pull-requests:
'**':
- step: *test-build
default:
# The following deployment steps will be executed for each pipeline run. To configure your steps and conditionally deploy see https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/
- step:
name: 'Deployment to TEST'
deployment: test
script:
- echo "Your deployment to test script goes here..."
- step:
name: 'Deployment to Production'
deployment: production
trigger: 'manual'
script:
- echo "Your deployment to production script goes here..."