If it is a pipeline defined job, use 'sh' pipeline operator, curl and unzip tools: script { sh "curl --insecure --fail --location --user $NEXUS_USER:$NEXUS_PASSWORD $FILE_URL --output $FILE_NAME" sh "unzip $FILE_NAME" }