How to use source command within Jenkins pipeline script

前端 未结 3 2064
我在风中等你
我在风中等你 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:06

    Replace source environment.sh with

    . ./environment.sh
    

    Please note there is a space after first dot.

提交回复
热议问题