Jenkins Deployment App

Source: Internet
Author: User

One, install the RPM package

Installing the JDK

  

Installing Jenkins

  

To see if the JDK was installed successfully

  

Start Jenkins systemctl start Jenkins

Start systemctl Enable Jenkins

Status: systemctl status Jenkins.service

Two, web configuration

   http://10.0.0.13:8080/

Password file in :/var/lib/jenkins/secrets/initialadminpassword

   

Are you sure:

   

Web page:

   

   Installation completed;

Third, plug-in learning

Self-used plug-in tar Package

   

Move to the Jenkins plugin catalog /var/lib/jenkins/plugins

   

   

Restart Service:

    Systemctl Restart Jenkins.service

Access Web Input login Admin password changed is changed, no change is Cat/var/lib/jenkins/secrets/initialadminpassword inside content

      

      

1, Directory Analysis

Home directory:/var/lib/jenkins

Configuration file:/etc/sysconfig/jenkins

Program Files/usr/lib/jenkins/jenkins.war

Log/var/log/jenkins

Startup file/etc/init.d/jenkins

2, create a task

               

                

Save Build

Start Build

                

                

JEnkins's working directory is/VAR/LIB/JENKINS/WORKSPACE/KINGLE-JOB1

3,gitlab+jenkins

Download source git repository online

          

Click OK

          

Import succeeded

Enter Jenkins

          

          

        

        

Complete

Installing httpd

Yum Install httpd-y change the port inside the vim/etc/httpd/conf/httpd.conf to 10001

Start Systemctl start Httpd.service

        

Release key: Ssh-copy-id-i ~/.ssh/id_rsa.pub 10.0.0.12

Send file:/var/lib/jenkins/workspace/kingle-job1

SCP-RP./* 10.0.0.12:/var/www/html/

        

          

Jenkins Deployment App

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.