在Linux环境下配置Jenkins执行时,发现不能执行Maven,这个比较搞了。
A Maven installation needs to be available for this project to be built.Either your server has no M
所以就网搜了下。
解决方案如下:
https://stackoverflow.com/questions/28387142/how-to-configure-maven-installation-in-jenkins-per-individual-slave-node
For me, the solution was to go to Manage Jenkins -> Global Tool Configuration, and set up maven there. You can access this via /configureTools (ex: http://your-ip:8080/jenkins/configureTools )
Example: Maven installations
- Name: my_maven_3.3.9
- MAVEN_HOME: /usr/share/maven
Additional configurations for other common tools at /configureTools :
Git installations
- Name: my_git_2.11.0
- Path to Git executable: /usr/bin/git
JDK installations
- Name: my_jdk_1.8.0_161
- JAVA_HOME: /opt/jdk/jdk1.8.0_161
所有评论(0)