Jenkins

From Gentoo Wiki
Jump to:navigation Jump to:search

Jenkins is an open source automation server written in Java. The project was forked from Hudson after a dispute with Oracle[1].

Common use case of Jenkins is automation of continuous integration (CI) and continuous delivery (CD) related tasks.

Installation

USE flags

USE flags for dev-util/jenkins-bin The leading open source automation server

Emerge

root #emerge --ask dev-util/jenkins-bin

Configuration

First configuration

Open http://localhost:8080 with a web browser and follow the first configuration steps.

General configuration

The main configuration dashboard is at http://localhost:8080/manage.

Security

The security configuration page is accessible on the configuration dashboard, or directly on http://localhost:8080/configureSecurity/.

Allow remote command-line interface

To allow anyone to connect with Command-line interface (CLI), activate two options:

  1. "Allow anonymous read access" in "Authorisations" section,
  2. "Enable CLI over Remoting" in the "CLI" section.

Usage

Service

systemd

For a oneshot start:

root #systemctl start jenkins

To enable the service at each startup:

root #systemctl enable jenkins

Access from the command-line

You must have remote CLI option activated.

Download http://localhost:8080/jnlpJars/jenkins-cli.jar.

To obtain the list of possible commands, open a console or a terminal and enter:

user $java -jar jenkins-cli.jar -s http://localhost:8080/ help

References

  1. Continuous Integration: Hudson vs. Jenkins - DevTeam.Space, devteam.space. Retrieved on December 1, 2018