-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
26 lines (24 loc) · 1.02 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
# Check our guides at https://confluence.atlassian.com/x/zd-5Mw for examples.
# Only use spaces to indent your .yml configuration.
image: java:8
pipelines:
definitions:
steps:
- step: &build-test-sonarcloud
name: Build, test and analyze on SonarCloud
script:
# - bash gradlew assemble test -x :stockmanagement-app:test -DstockApiToken=$STOCK_API_TOKEN
- pipe: sonarsource/sonarcloud-scan:0.1.5
variables:
SONAR_TOKEN: $SONAR_TOKEN
EXTRA_ARGS: $SONAR_EXTRA_ARGS
# SONAR_SCANNER_OPTS: '<string>' # Optional.
# DEBUG: '<boolean>' # Optional.
custom: # Pipelines that are triggered manually
Sonar: # The name that is displayed in the list in Bitbucket Cloud GUI
- step: *build-test-sonarcloud
Build: # just gradle build
- step:
name: Build
script:
- bash ./gradlew build -DstockApiToken=$STOCK_API_TOKEN