jenkins on Mac, PATH is not set right, no /usr/local/bin

前端 未结 5 1225
不思量自难忘°
不思量自难忘° 2020-12-14 15:00

I recently installed Jenkins, using Homebrew. I also installed Mercurial using Homebrew.

I can successfully clone an hg repo just fine - from Terminal. But if I try

5条回答
  •  死守一世寂寞
    2020-12-14 15:20

    For some reason, Jenkins doesn't keep /usr/local/bin in the PATH when connecting to a slave.
    You can add it to the PATH either by

    • Adding an environment variable on the Node Configuration, or
    • Adding a .bashrc file on the user folder with

      PATH="/usr/local/bin:${PATH}"
      

提交回复
热议问题