Jenkins installation configuration: Centos-master Windows/linux-slave + Nginx Proxy + node + job

Source: Internet
Author: User

CentOS Install Jenkins:

1.sudo Vi/etc/yum.repos.d/jenkins.repo

[Jenkins] name=Jenkinsbaseurl=Http://pkg.jenkins-ci.org/redhatgpgcheck=1

2. Download

CD/tmpwget http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/redhat/ jenkins-2.1-1.1.noarch.rpm

3. Installation

RPM--import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.keyrpm-ivh jenkins-2.1- 1.1 . Noarch.rpmservice Jenkins start

4. Visit http://localhost:8080

Note:jenkins configuration file/etc/sysconfig/jenkins

5. Upgrade can download the upgrade file directly on the HTTP://LOCALHOST:8080 system administration page

Replace the Jenkins.war file under/usr/lib/jenkins/to upgrade

CP -a jenkins.war/usr/lib/jenkins/jenkins.warservice Jenkins start

Set Nginx:

1. Installing Nginx

2. Configuration

A. vi/etc/nginx/nginx.conf
Find # include/etc/nginx/conf.d/*.conf;
Remove the previous # symbol

B. sudo vim/etc/nginx/conf.d/jenkins.conf

 #/etc/nginx/conf.d/jenkins.confserver {listen  80  ;    server_name jenkins.jobstreet.com;    #access_log /var/log/jenkins_access_log main;    #error_log /var/log/jenkins_error_log debug_http;    Client_max_body_size 60M;    Client_body_buffer_size 512k;        Location / {port_in_redirect on; Proxy_pass http:  // localhost:8080;          proxy_redirect off;        Proxy_set_header Host $host;        Proxy_set_header X -real-ip $remote _addr;    Proxy_set_header X -forwarded-for $proxy _add_x_forwarded_for; }}              

C. sudo vi/etc/hosts

   Join 127.0.0.1  jenkins.jobstreet.com

Add to host file if you are accessing other machines.

Jenkins set up Linux nodes

Jenkins setting up Windows nodes

Modify Windows Settings

New Windows node on Jenkins

Jenkins with Jenkins-cli.jar

Jenkins Setup Jobs

Slightly

Note

Slave
If it's windows, and you're using MSBuild,
1. You will need to configure the path of MSBuild in Windows. Eg:c:\windows\microsoft.net\framework\v4.0.30319\
After configuring slave, you need to restart Master's Jenkins
2. Or install the MSBuild plugin and set the path to MSBuild in the system management--"Global Tool Configuration

Jenkins installation configuration: Centos-master Windows/linux-slave + Nginx Proxy + node + job

Related Article

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.