I am executing the following script: 

sh label: "<-- Zipping files -->", script: "cd 
${JENKINS_HOME}/userContent/myfiles/; zip myzip.zip *; ls -alh; sleep 30s; 
rm !(myzip.zip)"

But I am getting the following error:

durable-dbed1d4d/script.sh: Syntax error: "(" unexpected

I have also tried adding sheblang but it doesn´t work neither:


Any workaround to fix this please?

You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to