官术网_书友最值得收藏!

Getting started with Jenkins

As a Java application, Jenkins can be installed and run in different ways depending on your requirements, personal preferences, and the environment that you are running it in.

The simplest and easiest approach to quickly get Jenkins up and running is by setting up Java, downloading the latest Jenkins WAR file from the Jenkins homepage (www.jenkins-ci.org), and then simply starting it from the command line like this:

java –jar jenkins.war

The following figure demonstrates the use of this approach by running just two simple commands:

  1. wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war:

    This command downloads the latest version of Jenkins from the main site.

    wget is a Linux utility that fetches files from the Web—if you are on a platform that does not have wget, you can simply save the link (the jenkins.war file) via your browser to a working directory instead.

    The URL is obtained by copying the Latest & Greatest link from the homepage at explained here: https://wiki.jenkins-ci.org/display/JENKINS/LTS+Release+Line.

    This is preferable for more conservative installations, where stability is more important than having latest features.

  2. java –jar jenkins.war:

    This second command tells Java to run the WAR file that we just downloaded as an application, which produces the resulting output that you can see in the following screenshot—Jenkins unpacking from the WAR file, checking and initializing the various subsystems, and starting up a process on port 8080:

    Downloading and starting Jenkins

This simple process is usually all that is required to both download the latest version of Jenkins and get it up and running. You should now be able to access the web interface at http://localhost:8080 through your browser and begin setting up jobs to make Jenkins work for you:

The Jenkins start page

主站蜘蛛池模板: 阿拉善左旗| 石楼县| 二手房| 青海省| 锦屏县| 吉安县| 合作市| 大同县| 嘉祥县| 黔东| 阿城市| 聂拉木县| 吉安县| 历史| 海安县| 瓮安县| 裕民县| 延吉市| 恩平市| 肃南| 英超| 平陆县| 辉南县| 平泉县| 西丰县| 英吉沙县| 外汇| 荔波县| 南部县| 天全县| 宝丰县| 兴城市| 屏东县| 米林县| 黄浦区| 右玉县| 洛南县| 平和县| 虎林市| 眉山市| 南华县|