Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What's the use of Jenkins?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you what is the use of Jenkins, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

What is jenkins?

Jenkins is an open source continuous integration server, and Jenkins open source helps us build various projects automatically. Jenkins's powerful plug-in allows Jenkins to integrate a lot of software, which may help us to continuously integrate our engineering projects.

Why use it? What pain points can be solved?

Although there is an one-click deployment tool that can easily deploy a small project in 10 seconds, continuous testing, continuous iteration, or changing requirements, deployment and integration is still a lot of work

Manual deployment of test developers crying

VS jenkins development test grinning

The version library is synchronized in real time when the build is actually updated.

Today, I just want to take a ride by myself. I didn't expect that there are so many pits. Isn't it just 1.2.3?

Prepare the environment in advance

JDK installed Maven installed version control tool optional turn off firewall

Linux installation

# download rpm package

Http://pkg.jenkins-ci.org/redhat/rpm-ivh jenkins-2.205-1.1.noarch.rpm

Change the jenkins configuration java root directory

Vi / etc/sysconfig/jenkins

Launch: service jenkins start

# it should have started smoothly here, but today, when I logged in to Aliyun, it prompted me to have a security breach and changed the port rules.

View statu

View administrative password

Cat / var/lib/jenkins/secrets/initialAdminPassword

Reset range access http://ip/ port

Initialization takes a long time. Select installation recommendation

... So slow

The process depends on the network, but it is still slow.

Install git in Linux and specify the Git client location in Jenkins

# install git compile-time package

Yum install-y curl-devel expat-devel gettext-devel openssl-devel zlib-devel yum install-y gcc perl-ExtUtils-MakeMaker

# move the git package to / usr/src

Cd / usr/src tar-zxvf git-2.9.3.tar.gz

# enter git-2.9.3

Cd git-2.9.3 make prefix=/usr/local/git allmake prefix=/usr/local/git install echo "export PATH=$PATH:/usr/local/git/bin" > > / etc/bashrc source / etc/bashrc

# check the version

Git-version

Add webhook to git

Click Project-> settings- > Webhooks

# gitlab I haven't settled in Aliyun yet, jenkins+gitlab is more or less the same

Portal-- > the whole process of building gitlab

# Ah! It's still so slow!

12:57:58 on November 24th, 2019

Ah. It was too difficult for me to finish the installation, and some of it failed!

Continue logging in using admin

Cancel CSRF in system settings to prevent cross-site request forgery

Global tool settings, configure Maven,jdk,git, etc.

Check ignore for Sinicization.

The above is all the content of this article "what's the use of Jenkins?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report