Jenkins executing maven from incorrect path

前端 未结 4 1420
不思量自难忘°
不思量自难忘° 2020-12-30 06:14

This happens for both: maven projects, and freestyle projects, when maven target is envoked, it tries to execute mvn using absolute path.

[MY-Job] $ tools/         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 06:51

    This looks like an auto installed Maven by Jenkins. In which case the previous answers are not correct.

    It would seem in this occasion that you have not specified a "remote fs root" for your slave in the salve setup - later versions of Jenkins flag not setting this up correctly as an error.

    slave config screen

提交回复
热议问题