Is there any way to change the working directory of a Jenkins Maven build?

前端 未结 9 1909
半阙折子戏
半阙折子戏 2020-12-14 16:13

Is there any way to change the working directory of a Jenkins Maven build?

Use Case

There is a Maven build that will only work if the current working direc

9条回答
  •  一个人的身影
    2020-12-14 16:50

    Solution:

    cd subfolder; mvn -f ../pom.xml task
    

    Maven does not provide an option to do it the other way round, meaning the sensible way for this use-case, probably because Maven hates you.

提交回复
热议问题