-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
55 lines (51 loc) · 1.75 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
# Template Java Gradle build
# This template allows you to test and build your Java project with Gradle.
# The workflow allows running tests, code checkstyle and security scans on the default branch.
# Prerequisites: appropriate project structure should exist in the repository.
image: gradle:7.6.2
definitions:
caches:
increment-build: ./build
pipelines:
default:
- step:
name: Security Scan
script:
# Run a security scan for sensitive data.
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.5.1
branches:
master:
- parallel:
- step:
name: Build and Test
caches:
- gradle
- increment-build
script:
- gradle bootJar
after-script:
- pipe: atlassian/checkstyle-report:0.3.0
- step:
name: Security Scan
script:
# Run a security scan for sensitive data.
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.5.1
dev:
- parallel:
- step:
name: Build and Test
caches:
- gradle
- increment-build
script:
- gradle bootJar
after-script:
- pipe: atlassian/checkstyle-report:0.3.0
- step:
name: Security Scan
script:
# Run a security scan for sensitive data.
# See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
- pipe: atlassian/git-secrets-scan:0.5.1