Infrastructure with maven, Jenkins, Nexus

前端 未结 5 1399
遥遥无期
遥遥无期 2020-12-12 21:16

We are using maven. I want to set up infrastructure, so that automatically built artifacts would go to Nexus repository. And then they could be used by developers.

I

5条回答
  •  我在风中等你
    2020-12-12 21:28

    If this is a Jenkins question rather than a Maven question, I'd recommend using the inbuilt Jenkins "Deploy Artifacts to Maven repository" Post build Action for most cases.

    Advantages in my opinion:

    • More portable (we use different repositories for different stages of the life cycle), and each Jenkins instance knows it's own repository
    • More obvious to anyone reading the Jenkins job
    • More in line with the Jenkins way of doing things

提交回复
热议问题