Jenkins : how to check out artifact from Nexus and Deploy on Tomcat-

前端 未结 4 1219
鱼传尺愫
鱼传尺愫 2020-12-14 02:09

I am tying to set up a Jenkins Pipeline. The first stage is done, the code compiles, is tested, inspected and deployed to Nexus.

I would like now to make a second st

4条回答
  •  时光说笑
    2020-12-14 02:48

    I suggest you create a new pom for this. That way you are not bound to jenkins. You need not explicitly checkout the artifact from nexus (note that this is called downloading from the repository in maven speech). You can specify a different war file location in the tomcat maven plugin. See the documentation. For downloading the latest version from the repository see the answers to this question.

提交回复
热议问题