fixed pipeline
This commit is contained in:
@@ -20,6 +20,7 @@ spec:
|
|||||||
DEPCHECKDB = credentials('depcheck-postgres')
|
DEPCHECKDB = credentials('depcheck-postgres')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
container('alpine') {
|
||||||
sh 'apk update && apk add openjdk11 java-postgresql-jdbc go'
|
sh 'apk update && apk add openjdk11 java-postgresql-jdbc go'
|
||||||
dependencyCheck additionalArguments: '-f JSON -f HTML -n --enableExperimental \
|
dependencyCheck additionalArguments: '-f JSON -f HTML -n --enableExperimental \
|
||||||
-l deplog \
|
-l deplog \
|
||||||
@@ -31,6 +32,7 @@ spec:
|
|||||||
sh 'cat deplog'
|
sh 'cat deplog'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('SonarQube analysis') {
|
stage('SonarQube analysis') {
|
||||||
environment {
|
environment {
|
||||||
SONARSCANNER_HOME = tool 'sonarscanner'
|
SONARSCANNER_HOME = tool 'sonarscanner'
|
||||||
|
|||||||
Reference in New Issue
Block a user