; 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:
>>
>> #!/bi
> ${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 doe
Double quotes might be a bit tricky with the interpolation and gstring.
I'd suggest move the script content to a file in your repo and just call
the script using:
sh label:"<-- Zipping files -->", script: "your_script.sh"
I'd suggest to chmod 755 your_script.sh and add some shebang too.
The ma
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: "(&