Jenkins Pipeline job can't find script due to @tmp path being created

后端 未结 6 1067
小蘑菇
小蘑菇 2021-02-07 07:19

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.

6条回答
  •  情深已故
    2021-02-07 08:23

    I guess your pwd is not in PATH so you have to call it like this: sh './update-plugins.sh'

提交回复
热议问题