I am writing a pipeline job that will call another script to execute. The Jenkinsfile and script exist in the same directory and yet the job fails to find the script to run.
I guess your pwd is not in PATH so you have to call it like this: sh './update-plugins.sh'
sh './update-plugins.sh'