Windows Deployment
The official help documentation:
https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer
2.2.1 Configuration start address of the default http: // localhost: 8080 / profiles for jenkins.xml
<service> <id>Jenkins</id> <name>Jenkins</name> <description>This service runs Jenkins automation server.</description> <env name="JENKINS_HOME" value="%BASE%"/> <executable>%BASE%\jre\bin\java</executable> <arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080 --webroot="%BASE%\war"</arguments> <logmode>rotate</logmode> <onfailure action="restart" /> <extensions> <!-- This is a sample configuration for the RunawayProcessKiller extension. --> <extension enabled="true" className="winsw.Plugins.RunawayProcessKiller.RunawayProcessKillerExtension" id="killOnStartup"> <pidfile>%BASE%\jenkins.pid</pidfile> <stopTimeout>10000</stopTimeout> <stopParentFirst>false</stopParentFirst> </extension> </extensions> </service>
2.2.2 deployment issues
Jenkins default Windows version is installed services, controlled by the Windows Service Manager.
异常: 出现 Please wait while Jenkins is getting ready to work ...
Will: hudson.model.UpdateCenter.xml into the following
<?xml version='1.1' encoding='UTF-8'?> <sites> <site> <id>default</id> <url>https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json</url> </site> </sites>
Formal deployment
Plug (JDK, Maven, Git) Jenkins for the first time into the recommended installation installed by default on the line
Access Address: HTTP: // localhost:? 8080 / =% 2F from the Login prompt installation password
Installation problems, please see my other articles