Skip to content

Commit 23b99dc

Browse files
Update Jenkinsfile
1 parent 0bdf0e5 commit 23b99dc

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

continuous-integration/Jenkinsfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,22 @@ pipeline {
1414
}
1515
}
1616
stage('Security analysis') {
17-
agent any
1817
steps{
19-
sh "docker run --rm --volume \$(pwd) secfigo/bandit:latest"
18+
sh "docker run --rm --volume \"\$(pwd)\" secfigo/bandit:latest"
2019
}
2120
}
2221
stage ("Dependency Check with Python Safety"){
2322
steps{
2423
catchError {
25-
sh "docker run --rm --volume \$(pwd) pyupio/safety:latest safety check"
26-
sh "docker run --rm --volume \$(pwd) pyupio/safety:latest safety check --json > report.json"
24+
sh "docker run --rm --volume \"\$(pwd)\" pyupio/safety:latest safety check"
25+
sh "docker run --rm --volume \"\$(pwd)\" pyupio/safety:latest safety check --json > report.json"
2726
}
2827
echo currentBuild.result
2928
}
3029
}
3130
stage ("Static Analysis with python-taint"){
3231
steps{
33-
sh "docker run --rm --volume \$(pwd) vickyrajagopal/python-taint-docker pyt ."
32+
sh "docker run --rm --volume \"\$(pwd)\" vickyrajagopal/python-taint-docker pyt ."
3433
}
3534
}
3635
stage('continuous integration') { // Compile and do unit testing

0 commit comments

Comments
 (0)