bitbucket-pipelines.yml 963 B

123456789101112131415161718192021222324252627
  1. # Template maven-build
  2. # This template allows you to test and build your Java project with Maven.
  3. # The workflow allows running tests, code checkstyle and security scans on the default branch.
  4. # Prerequisites: pom.xml and appropriate project structure should exist in the repository.
  5. image: maven:3.8.1-openjdk-15
  6. pipelines:
  7. default:
  8. - parallel:
  9. - step:
  10. name: Build and Test
  11. caches:
  12. - maven
  13. script:
  14. - mvn -B verify --file pom.xml
  15. after-script:
  16. # Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
  17. - pipe: atlassian/checkstyle-report:0.2.0
  18. - step:
  19. name: Security Scan
  20. script:
  21. # Run a security scan for sensitive data.
  22. # See more security tools at https://bitbucket.org/product/features/pipelines/integrations?&category=security
  23. - pipe: atlassian/git-secrets-scan:0.4.3