2020-11-22 22:19:10 +01:00
|
|
|
# Template maven-build
|
|
|
|
|
|
|
|
# This template allows you to test and build your Java project with Maven.
|
|
|
|
# The workflow allows running tests, code checkstyle and security scans on the default branch.
|
|
|
|
|
|
|
|
# Prerequisites: pom.xml and appropriate project structure should exist in the repository.
|
|
|
|
|
|
|
|
image: maven:3.6.3
|
|
|
|
|
|
|
|
pipelines:
|
|
|
|
default:
|
|
|
|
- parallel:
|
|
|
|
- step:
|
|
|
|
name: Build and Test
|
|
|
|
caches:
|
|
|
|
- maven
|
|
|
|
script:
|
2020-11-24 03:30:21 +01:00
|
|
|
- mvn -B verify --file pom.xml install
|
2020-11-22 22:19:10 +01:00
|
|
|
after-script:
|
|
|
|
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
|
|
|
|
- pipe: atlassian/checkstyle-report:0.2.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
|
2020-11-24 03:30:21 +01:00
|
|
|
- pipe: atlassian/git-secrets-scan:0.4.3
|