0% found this document useful (0 votes)
48 views

Devops Exp8

The document provides steps to install Jenkins on Windows by using the Windows installer. It describes 8 steps: 1) selecting the destination folder, 2) specifying service logon credentials, 3) selecting the port, 4) choosing the Java home directory, 5) customizing additional settings, 6) starting the installation, 7) monitoring installation progress, and 8) completing the installation. Once installed, Jenkins runs as a Windows service.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Devops Exp8

The document provides steps to install Jenkins on Windows by using the Windows installer. It describes 8 steps: 1) selecting the destination folder, 2) specifying service logon credentials, 3) selecting the port, 4) choosing the Java home directory, 5) customizing additional settings, 6) starting the installation, 7) monitoring installation progress, and 8) completing the installation. Once installed, Jenkins runs as a Windows service.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Preparing Jenkins to Run Pipelines

To run pipelines, you need to have a Jenkins instance that is set up with the appropriate plugins.
This requires:

 Jenkins 1.580.1 or later (Jenkins 2.0 is recommended)


 The core Pipeline plugin

Installing the Pipeline Plugin

The Pipeline plugin is installed in the same way as other Jenkins plugins. Installing the
Pipeline plugin also installs the suite of related plugins on which it depends: Open Jenkins in
your web browser. On the Manage Jenkins page for your installation, navigate to Manage
Plugins. Find Pipeline Plugin from among the plugins listed on the Available tab. (You can do
this by scrolling through the plugin list or by using “Pipeline” as a term to filter results) Select
the checkbox for Pipeline Plugin. Select either Install without restart or Download now and
install after restart. Pipeline plugin installation automatically includes all necessary
dependencies. Restart Jenkins.

Pipeline Plugin Reference List

The Pipeline plugin works with a suite of related plugins that enhance the pipeline
functionality of your Jenkins setup. The additional plugins typically introduce additional pipeline
syntax or visualizations.

The table below describes pipeline-related plugins in terms of their importance to


pipeline functionality (required, recommended, or optional). To get the basic pipeline
functionality, you only need to install the main Pipeline plugin, but recommended plugins add
additional capabilities that you will probably want.

Optional plugins are mainly useful if you are creating pipelines that are related to the
technologies that they support.

Plugin Name Description Status


Installs the core pipeline engine and its dependent plugins: Pipeline: API,
Pipeline (workflow- Pipeline: Basic Steps, Pipeline: Durable Task Step, Pipeline: Execution
required
aggregator) Support, Pipeline: Global Shared Library for CPS pipeline, Pipeline: Groovy
CPS Execution, Pipeline: Job, Pipeline: SCM Step, Pipeline: Step API
Provides a graphical swimlane view of pipeline stage execution (as well as a
Pipeline: Stage View recommended
build history of the stages)
Adds "Multibranch Pipeline" item type which allows Jenkins to automatically
Multibranch Pipeline recommended
build branches that contain jenkinsfile
recommended
CloudBees GitHub Branch Adds GitHub Organization Folder item type and adds "Github" as a branch for teams hosting
Source source on Multibranch pipelines repositories in
Github
recommended
CloudBees Bitbucket Branch Adds Bitbucket Team item type and adds "Bitbucket" as a branch source on for teams hosting
Source Multibranch pipelines repositories in
Bitbucket
CloudBees Docker Pipeline Enables pipeline to build and use Docker containers inside pipeline scripts. optional
Windows 
The simplest way to install Jenkins on Windows is to use the Jenkins Windows installer. That
program will install Jenkins as a service using a 64 bit JVM chosen by the user. Keep in mind that to run
Jenkins as a service, the account that runs Jenkins must have permission to login as a service.

Prerequisites
Minimum hardware requirements:

 256 MB of RAM
 1 GB of drive space (although 10 GB is a recommended minimum if running Jenkins as a Docker
container)
Recommended hardware configuration for a small team:

 4 GB+ of RAM
 50 GB+ of drive space
Comprehensive hardware recommendations:

 Hardware: see the Hardware Recommendations page


Software requirements:

 Java: see the Java Requirements page


 Web browser: see the Web Browser Compatibility page
 For Windows operating system: Windows Support Policy
 For Linux operating system: Linux Support Policy

Refer to the Windows section of the Downloading Jenkins page to download either an LTS release or a
weekly release of the Windows installer. After the download completes, open the Windows installer and
follow the steps below to install Jenkins.

Step 1: Setup wizard


On opening the Windows Installer, an Installation Setup Wizard appears,
Click Next on the Setup Wizard to start your installation.
Step 2: Select destination folder
Select the destination folder to store your Jenkins Installation and click Next to
continue.

Step 3: Service logon credentials


When Installing Jenkins, it is recommended to install and run Jenkins as an
independent windows service using a local or domain user as it is much safer
than running Jenkins using LocalSystem(Windows equivalent of root) which
will grant Jenkins full access to your machine and services.

To run Jenkins service using a local or domain user, specify the domain user name and
password with which you want to run Jenkins, click on Test Credentials to test your
domain credentials and click on Next.
Step 4: Port selection
Specify the port on which Jenkins will be running, Test Port button to validate whether the
specified port if free on your machine or not. Consequently, if the port is free, it will show a green
tick mark as shown below, then click on Next.
Step 5: Select Java home directory
The installation process checks for Java on your machine and prefills the dialog
with the Java home directory. If the needed Java version is not installed on your
machine, you will be prompted to install it.

Once your Java home directory has been selected, click on Next to continue.
Step 6: Custom setup
Select other services that need to be installed with Jenkins and click on Next.
Step 7: Install Jenkins
Click on the Install button to start the installation of Jenkins.
Additionally, clicking on the Install button will show the progress bar of installation, as shown below:
Step 8: Finish Jenkins installation
Once the installation completes, click on Finish to complete the installation.

Jenkins will be installed as a Windows Service. You can validate this by browsing the services section, as
shown below:

You might also like