How to set PATH in Jenkins Declarative Pipeline

后端 未结 4 802
面向向阳花
面向向阳花 2021-01-01 08:55

In Jenkins scripted pipeline you can set PATH env variable like this :

node {
   git url: \'https://github.com/jglick/simple-maven-project-with-tests.git\'
          


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-01 09:32

    Using the tool section in pipeline is only allowed for pre-installed Global Tools. Some tools are provided by plugins, but if it not exists I'am afraid you cannot use the environment setup via pipeline tool declaration.

    I hope to be wrong!

提交回复
热议问题