How to use source command within Jenkins pipeline script

前端 未结 3 2067
我在风中等你
我在风中等你 2021-02-12 13:42

I recently rewrite bash execution command into Jenkins pipeline. The old code is like

...
source environment.sh
//Build
//Test
...

Now I use pi

3条回答
  •  深忆病人
    2021-02-12 14:05

    If someone want to execute the script with source only solution is to change "Shell executable" to bash in ->Manage Jenkins->Configure System

提交回复
热议问题