Jenkins访问github项目中的pom文件

时间:2015-07-09 05:41:00

标签: github jenkins

我想在这个github项目上测试Jenkins构建: https://github.com/kevinsawicki/github-maven-example.git

问题是Jenkins找不到pom.xml,因为pom文件位于项目的example /目录下。但是,从github克隆的根目录是workspace /.

在这种情况下,我应该如何指定github URL让Jenkins知道项目的真正根是示例/?

1 个答案:

答案 0 :(得分:1)

如果您正在使用maven构建步骤,只需在Root POM中指定pom的路径:

enter image description here

如果您正在使用shell构建步骤,请按照github-maven-example项目自述文件中的说明进行操作:

$ cd example
$ mvn clean install
相关问题