-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec.yml
21 lines (19 loc) · 892 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 0.2
phases:
pre_build:
commands:
- curl -LOk https://blackducksoftware.github.io/hub-detect/hub-detect.sh
- hubUrl=$(aws ssm get-parameters --region us-east-1 --names BLACKDUCK_HUB_URL --query Parameters[0].Value)
- hubUserName=$(aws ssm get-parameters --region us-east-1 --names BLACKDUCK_HUB_USERNAME --query Parameters[0].Value)
- hubPassword=$(aws ssm get-parameters --region us-east-1 --names BLACKDUCK_HUB_PASSWORD --with-decryption --query Parameters[0].Value)
build:
commands:
- gradle build
post_build:
commands:
- bash hub-detect.sh --blackduck.hub.url=$hubUrl --blackduck.hub.username=$hubUserName --blackduck.hub.password=$hubPassword --detect.risk.report.pdf=true --detect.risk.report.pdf.path=build/libs
artifacts:
files:
- build/libs/HelloWorld-Gradle-1.0.jar
- build/libs/*.pdf
discard-paths: yes