Skip to content

Latest commit

 

History

History
154 lines (84 loc) · 3.89 KB

Config.md

File metadata and controls

154 lines (84 loc) · 3.89 KB

click here to go back to the main README.

Table of Contents


Unlock Jenkins

../Back to ToC

After Jenkins has been installed in will open default on "http://localhost:8080"

Upon first run Jenkins will be locked and you will need to unlock it.

The gui will present you with a path and file you need to open.

In this file you will find a token string which needs to be copied into the Jenkins GUI.

(note: For Docker users this hashed key will also be printed in your console when you start the docker container. Alternatively you can check you local persistant path and look for the file mentioned in the image.)

Install Plugins

../Back to ToC

Go with the suggested plugins

Have a coffee

create a user.

After creating a user jenkins is ready. Select Start Using Jenkins and you will be presented with the Jenkins Dashboard


additional plugins

../Back to ToC

In order to complete the bootcamp additional plugins are needed.

We need to Install the "Job DSL" plugin.

From the jenkins Dashboard select "Manage Jenkins"

Select "Manage Plugins"

Click the "Available" tab and search for "Job DSL"

Select the plugin and click "Download now and install after restart"

Alternatively you can "install without restart" and perform a manual restart with http://localhost:8080/safeRestart


Jenkins config

../Back to ToC

If you haven't done so already install the additional software in order to continue - Additional Software

From the Jenkins Dashboard choose "Manage Jenkins"

Choose "Global Tool Configuration"

In global Tool configuration configure the following options

Git

../Back to ToC

Name: Git Path: PathWhereYouInstalledGit\git.exe (or find the path if you are using a nin-windows OS)

Java

../Back to ToC

Choose "Add JDK"

Uncheck install automatically

Name: Java SDK JAVA_HOME: PathWhereYouInstalledJavaSDK (don't include any libraries. Just the path is fine.)

Maven

../Back to ToC

Name: M3 Check Install Automatically Version 3.3.9


Optional Configuration

../Back to ToC

Change Port

If you don't want jenkins to run on 8080 or if another service you use runs on that port you can change it:

  • find Jenkins.xml (in the install directory you choose in the wizard)
  • search for "--httpPort=8080".
  • replace 8080 with the desired port number
  • restart jenkins (http://localhost:8080/safeRestart)
  • alternatively you can start java on another port using "java -jar jenkins.war -httpPort=8081" (or any other port)

Back to top

click here to go back to the main README.