如何配置Jenkins构建服务器

如何配置Jenkins构建服务器 (How to Configure Jenkins Build Server)

In the previous chapter, we studied the on the details about what is Jenkins, its usage and best practices to be made while working with Jenkins. Now, let us see configuring Jenkins in our local machines.

在上一章中,我们详细研究了什么是Jenkins,其用法以及与Jenkins合作时应采取的最佳做法。 现在,让我们看看在本地计算机中配置Jenkins。

Note : The below steps shows how to install and configure Jenkins a windows environment and using Apache Tomcat web server.

注意:以下步骤显示了如何在Windows环境中安装和配置Jenkins以及如何使用Apache Tomcat Web服务器。

詹金斯设置 (Jenkins Setup)

  1. https://jenkins-ci.org/. Towards the right top click on the link latest and greatest to download the latest war file.https://jenkins-ci.org/下载最新的Jenkins.war。 在右上方,单击最新和最重要的链接以下载最新的war文件。
  2. Jenkins.war file in the local web server of our machine. E.g. TomcatJenkins.war文件。 例如Tomcat
  3. http://localhost:8080/jenkinshttp:// localhost:8080 / jenkins

    如何配置Jenkins构建服务器



  4. create new jobs link to configure a project for build automation. Enter the details of the project as shown below and click OK. 创建新作业”链接以配置用于构建自动化的项目。 输入项目的详细信息,如下所示,然后单击“确定”。

    如何配置Jenkins构建服务器



  5. 如何配置Jenkins构建服务器

    如何配置Jenkins构建服务器

    如何配置Jenkins构建服务器



  6. 如何配置Jenkins构建服务器

  7. Build now option as shown above. This will read the pom.xml and pull out the latest code and executes a build process and generates the jar/war file accordingly.构建”选项。 这将读取pom.xml并提取最新代码,并执行构建过程并相应地生成jar / war文件。

    如何配置Jenkins构建服务器

  8. 如何配置Jenkins构建服务器

    如何配置Jenkins构建服务器

    如何配置Jenkins构建服务器

    如何配置Jenkins构建服务器

翻译自: https://www.studytonight.com/jenkins/configuring-jenkins