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

前端 未结 9 1905
半阙折子戏
半阙折子戏 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 16:44

    The Jenkins we are working with is in German so I'm trying to guess how the options are translated.

    Go to the configuration of your project and there go to enhanced project configuration (it's the second section) and expand it. The last point should be something like Change folder of workspace. I think that might be what you are looking for.

    Otherwise you can always go to the Build options and change the path to your pom.xml

提交回复
热议问题