jenkins构建时报错:
The goal you specified requires a project to execute but there is no POM in this directory (/var/jenkins_home/workspace/jeecg-boot_master). Please verify you invoked Maven from the correct directory
正常情况下,我们创建项目的时候,习惯性的把pom.xml文件存放在根目录下,如果没有放到根目录下,jenkins找不到pom.xml文件就会报错
解决:在Jenkinfile中mvn打包时添加存在pom.xml文件的路径即可