Jenkins
Whats’ Jenkins?
Jenkins is an award-winning application that monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Jenkins focuses on the following two jobs:
Building/testing software projects continuously, just like CruiseControl or DamageControl. In a nutshell, Jenkins provides an easy-to-use so-called 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 and procmail jobs, even those that are run on a remote machine. For example, with cron, all you receive is regular e-mails that capture the output, and it is up to you to look at them diligently and notice when it broke. Jenkins keeps those outputs and makes it easy for you to notice when something is wrong.
Install Jenkins
Go to official website choose Jenkins you need.
step by step
- if you use
jenkins.msi, double click this file then Jenkins will install Jenkins half-automation(need click next and fulfill username and password, etc.) - else if you download source code, navigate to Jenkins path(contain Jenkins.war),
cmd->java -jar jenkins.war --httpPort=8080(point the http port)Tips:
- if you are using Jenkins.msi to install Jenkins, then no need navigate to Install path to run
cmd->java -jar jenkins.war command.
- if you are using Jenkins.msi to install Jenkins, then no need navigate to Install path to run
- but if you installed Jenkins by Jenkins.msi, then you navigate to Install path and run
cmd->java -jar jenkins.warcommand again, that will generate another instance inC:\Users\YourAccountName\.jenkins\
- Go to
C:\Program Files (x86)\Jenkins\secrets\initialAdminPasswordto get the initial password. This may also be found at:C:\Users\YourAccountName\.jenkins\secrets\initialAdminPassword, watch out the output information. - click
Continue - pop up Customize Jenkins page, choose the plugins you need, and keep patient to wait.
- set Username and Password.
- set Jenkins URL
- Start using Jenkins
Start and Stop Jenkins service
net start jenkins (start Jenkins service)
net stop jenkins (stop Jenkins service), also you can use Use http://[your-jenkins]/exit
http://[your-jenkins]/safe-shutdown
http://[your-jenkins]/safe-restart
Jenkins status (check Jenkins status)
http://[your-jenkins]/cli to get more informations
How to use
references
https://www.codeproject.com/Articles/878203/Integrate-Jenkins-with-MSBuild-and-NuGet
https://www.liaoxuefeng.com/article/001463233913442cdb2d1bd1b1b42e3b0b29eb1ba736c5e000
https://www.automatetheplanet.com/integrate-jenkins-github/
https://blog.csdn.net/leijiantian/article/details/7916483
https://blog.csdn.net/reblue520/article/details/76287541
https://blog.csdn.net/hc_ttxs/article/details/79384535
https://blog.csdn.net/qq_26848099/article/details/78901240