1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

fix: sonarExecuteScan: safeguard unstash of git metadata (#976)

* unstash .git folder only if not present, ignore missing stashes

* fix: negate condition

* Update sonarExecuteScan.groovy
This commit is contained in:
Christopher Fenner 2019-11-13 12:55:02 +01:00 committed by GitHub
parent a89361449e
commit 14e7ef23b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,7 +190,9 @@ void call(Map parameters = [:]) {
script: script,
dockerImage: configuration.dockerImage
){
unstash 'git'
if(!script.fileExists('.git')) {
utils.unstash('git')
}
worker(configuration)
}
}