Skip to content

Commit 7a854f3

Browse files
authored
Update Jenkinsfile
1 parent 19285e3 commit 7a854f3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pipeline {
44
environment {
55
NIGHTVISION_TOKEN = credentials('nightvision-token')
66
NIGHTVISION_TARGET = 'javaspringvulny-api'
7-
NIGHTVISION_APP = 'javaspringvulny-api'
87
NIGHTVISION_AUTH = 'javaspringvulny-api'
98
}
109

@@ -30,7 +29,7 @@ pipeline {
3029
script {
3130
sh """
3231
33-
./nightvision swagger extract ./ -t "${env.NIGHTVISION_TARGET}" --lang spring || true
32+
./nightvision swagger extract . -t "${env.NIGHTVISION_TARGET}" --lang spring || true
3433
if [ ! -e openapi-spec.yml ]; then
3534
cp backup-openapi-spec.yml openapi-spec.yml
3635
fi
@@ -54,7 +53,7 @@ pipeline {
5453
script {
5554
sh """
5655
57-
./nightvision scan "${env.NIGHTVISION_TARGET}" -a "${env.NIGHTVISION_APP}" --auth "${env.NIGHTVISION_AUTH}" > scan-results.txt
56+
./nightvision scan "${env.NIGHTVISION_TARGET}" --auth "${env.NIGHTVISION_AUTH}" > scan-results.txt
5857
./nightvision export sarif -s \$(head -n 1 scan-results.txt) --swagger-file openapi-spec.yml > results.sarif
5958
"""
6059

0 commit comments

Comments
 (0)