Configuring Hudson to deploy a build

后端 未结 2 1930
心在旅途
心在旅途 2021-02-04 15:25

I\'m trying to configure Hudson so that I will be able to automatically deploy a build (a .war file) to Tomcat. The newly deployed build will then be used by someone to test the

2条回答
  •  星月不相逢
    2021-02-04 16:05

    I have several hudson jobs per projects:

    1. A main job that just builds the project and runs the tests. If it succeeds, it launches the following jobs:
    2. A code metrics job (PMD, FindBugs, Cobertura, CheckStyle, also JavaDoc generation) and
    3. A deploy job that builds the project using mvn package -DskipTests and deploys the war on tomcat

    I find that separating these made things easier, only the first job listens for SCM changes.

    However, another way would be to let the 3rd job also listen to the SCM (but with a longer interval, perhaps an hour).

提交回复
热议问题