Debian Codegraph @

ansible_collections/netapp_eseries/santricity/vars/setupSynopsysDetect.groovy

raw
1
2 def call(Map options = [:], String synopsysDetectVersion) {
3 options.synopsysDir = options.synopsysDir ?: "/tmp/synopsys-detect-air-gap/${synopsysDetectVersion}"
4 if (new File(options.synopsysDir).exists()) {
5 echo "No need to fetch synopsys-${synopsysDetectVersion}, directory exists ${options.synopsysDir}"
6 return
7 }
8
9 sh """
10 wget -qN http://esgweb.eng.netapp.com/~blucas/packages/synopsys-detect-${synopsysDetectVersion}-air-gap.zip -O synopsys-detect.zip
11 mkdir -p ${options.synopsysDir}
12 unzip -q -d ${options.synopsysDir} -u synopsys-detect.zip
13 rm -f synopsys-detect.zip
14 """
15 }