Files
offline_kubespray/collection/netapp_eseries/santricity/vars/setupSynopsysDetect.groovy
ByeonJungHun 360c6eef4a offline 작업
2024-02-19 16:02:29 +09:00

16 lines
645 B
Groovy

def call(Map options = [:], String synopsysDetectVersion) {
options.synopsysDir = options.synopsysDir ?: "/tmp/synopsys-detect-air-gap/${synopsysDetectVersion}"
if (new File(options.synopsysDir).exists()) {
echo "No need to fetch synopsys-${synopsysDetectVersion}, directory exists ${options.synopsysDir}"
return
}
sh """
wget -qN http://esgweb.eng.netapp.com/~blucas/packages/synopsys-detect-${synopsysDetectVersion}-air-gap.zip -O synopsys-detect.zip
mkdir -p ${options.synopsysDir}
unzip -q -d ${options.synopsysDir} -u synopsys-detect.zip
rm -f synopsys-detect.zip
"""
}