mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +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:
parent
a89361449e
commit
14e7ef23b4
@ -190,7 +190,9 @@ void call(Map parameters = [:]) {
|
||||
script: script,
|
||||
dockerImage: configuration.dockerImage
|
||||
){
|
||||
unstash 'git'
|
||||
if(!script.fileExists('.git')) {
|
||||
utils.unstash('git')
|
||||
}
|
||||
worker(configuration)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user