27 lines
500 B
YAML
27 lines
500 B
YAML
|
|
when:
|
|
- event: push
|
|
branch: develop
|
|
|
|
steps:
|
|
- name: hello
|
|
image: alpine
|
|
commands:
|
|
- echo "Hello World!"
|
|
|
|
- name: test
|
|
image: maven:3-amazoncorretto-17-alpine
|
|
commands:
|
|
- mvn clean verify
|
|
|
|
- name: sonarcloud-scan
|
|
image: maven:3-amazoncorretto-17-alpine
|
|
environment:
|
|
SONAR_TOKEN:
|
|
from_secret: sonar_token
|
|
commands:
|
|
- mvn sonar:sonar -Dsonar.token=$SONAR_TOKEN
|
|
when:
|
|
- branch: develop
|
|
|