Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Extending Jenkins

You're reading from   Extending Jenkins Get a complete walkthrough of the many interfaces available in Jenkins with the help of real-world examples to take you to the next level with Jenkins

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785284243
Length 152 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Donald Simpson Donald Simpson
Author Profile Icon Donald Simpson
Donald Simpson
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Preparatory Steps FREE CHAPTER 2. Automating the Jenkins UI 3. Jenkins and the IDE 4. The API and the CLI 5. Extension Points 6. Developing Your Own Jenkins Plugin 7. Extending Jenkins Plugins 8. Testing and Debugging Jenkins Plugins 9. Putting Things Together Index

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 https://jenkins-ci.org/. Note that there is also an option to download and use the Long-Term Support release instead of the current, latest, and greatest, as 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:

    Getting started with Jenkins

    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:

Getting started with Jenkins

The Jenkins start page

You have been reading a chapter from
Extending Jenkins
Published in: Dec 2015
Publisher:
ISBN-13: 9781785284243
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image