zoukankan      html  css  js  c++  java
  • How to install Jenkins on CentOS 7

    How to install Jenkins on CentOS 7

    Introduction

    Jenkins is an Open-Source automation software (a fork of Hudson) which can help you automate repetitive technical tasks involved in the continuous integration and delivery of software. Jenkins is written in JAVA language an currently focusing on two main purposes:

    • Building and testing software projects, just like CruiseControl or DamageControl. Jenkins provides an easy-to-use continuous integration system, making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. The automated, continuous build increases the productivity.
    • Monitoring executions of externally-run jobs, such as cron jobs, even those that are run on a remote machine. Jenkins keeps those outputs and makes it easy for you to notice when something is wrong.

    Install Jenkins

    The version of Jenkins which is available by the RHEL official repository is often behind the latest version, so in order to take advantage of the latest fixes and features, we’ll use the project-maintained packages to install Jenkins.

    Add the repository key with the following command:

    Now we will add the package repository address to our repository list with the command below:

    Update your package manager list to get the latest packages:

    Finally, install Jenkins and JAVA with the following command:

    Starting Jenkins

    Jenkins will work as a service, so you can control it using “systemctl” command. start your Jenkins server with the following command:

    If you want to make it run at startup execute the command below as well:

    You can check Jenkins service status using:

    Setting up Jenkins

    For start setting up our Jenkins, we need to visit its web dashboard running on port, “8080”. so open your browser and see your public IP address or your Domain name followed by the port number through it:

    You will see a page like below:

    As you can see, you need to enter a password in order to proceed. so get back to your server and execute the following command to get the default password:

    You will get something like below in output:

    Paste in the “Administrator password” field and hit continue to see the following page:

    We recommend you to select the “Install suggested plugins” option if you are new to Jenkins. Now you can see that Jenkins is installing some plugins:

    After that, you will direct to a page which you have to create your first user:


     
    If you want to get more information about Jenkins you can visit the official website!

  • 相关阅读:
    vue 移动端商城搭建 (一)
    关于mantisBT2.22安装插件Inline column configuration 2.0.0时提示缺少依赖jQuery UI Library 1.8
    mantis2.22.1中添加管理员密码修改框
    mantisbt2.22.1 中使用自带的phpmailer发送邮件(实测可用)
    Mac配置Jenkins(构建Allure模板报告)
    ATX插件机制-学习学习
    查看包名和Activity的小工具
    pytest跳过指定的测试或模块
    pytest常用命令参数
    关于pytest使用allure生成报告时,报一堆警告和缺少XX模块
  • 原文地址:https://www.cnblogs.com/rosepotato/p/9151314.html
Copyright © 2011-2022 走看看