jenkins 多服务器_在Jenkins服务器中设置作业

jenkins 多服务器

在Jenkins服务器中设置作业 (Setup a Job in Jenkins Server)

The build for any project in Jenkins is handled by JOBs. Hence, a job always needs to be created in order to build a project. This can be easily done as shown below :

Jenkins中任何项目的构建都由JOB处理。 因此,始终需要创建工作才能构建项目。 可以很容易做到,如下所示:

Click on the New Item from the Jenkins home page and just enter the item name of a project and select Maven project and click on OK.

从Jenkins主页单击New Item ,然后输入项目的项目名称,然后选择Maven项目 ,然后单击OK。

jenkins 多服务器_在Jenkins服务器中设置作业



In the next page, under the Build, just point to the pom.xml of the maven project and specify clean verify under the Goals and options. Then apply and save the page.

在下一页的Build下,只需指向maven项目的pom.xml ,然后在Goals和options下指定clean verify即可。 然后应用并保存页面。

jenkins 多服务器_在Jenkins服务器中设置作业



In the next page, a job is created. Just click on the Build Now link and can see that a new build will be triggered as shown below,

在下一页中,将创建一个作业。 只需单击立即构建链接,即可看到将触发一个新构建,如下所示,

jenkins 多服务器_在Jenkins服务器中设置作业

翻译自: https://www.studytonight.com/jenkins/setting-up-job

jenkins 多服务器