mvn:找不到命令 [英] mvn: command not found
问题描述
我正在尝试使用jenkinsfile在一个我无权管理路径的特定对象上运行管道.但是我遇到这个错误,有人可以解决吗?
I'm trying to run a pipeline with jenkinsfile on a specific for which I don't have access to manage the path. But I'm having this error can any one know how to solve this one?
推荐答案
您需要在执行作业的生成代理上安装Maven. Jenkins的替代方法是它可以为您安装Maven.可以在Jenkins Master的全局工具配置中进行配置.
You need to install Maven on the build agent executing the job. An alternative by Jenkins is that it can install Maven for you. This can be configured in the Global Tool Configuration of the Jenkins Master.
如果真的只允许您修改Jenkinsfile
,则可以先下载maven并将其解压缩到某个本地目录,然后从那里调用它.
If you are really only allowed to modify the Jenkinsfile
, you could first download and unpack maven into some local directory and then call it from there.
这篇关于mvn:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!