jenkins

basic

[!NOTE]

SUPPORTED JAVA VERSION
LTS RELEASE
WEEKLY RELEASE

Java 11, Java 17 or Java 21

N/A

2.419 (August 2023)

Java 11, Java 17

2.361.1 (September 2022)

2.357 (June 2022)

Java 8, Java 11 or Java 17

2.346.1 (June 2022)

2.340 (March 2022)

Java 8, Java 17

2.164.1 (March 2019)

2.164 (February 2019)

CPS

The default rule set results in the following:

  • No JavaScript allowed at all

  • No plugins (object/embed) allowed

  • No inline CSS, or CSS from other sites allowed

  • No images from other sites allowed

  • No frames allowed

  • No web fonts allowed

  • No XHR/AJAX allowed

  1. open in browser:

using style in Jenkins

crumb issuer

get crumb

visit API via crumb

@Current after 2.176.2

@Dprecated before jenkins 2.176.2

build a job using the REST API and cURL

[!TIP]

  • https://jenkins.sample.com/safeRestart

  • https://jenkins.sample.com/restart

@Current after 2.176.2

@Dprecated before jenkins 2.176.2

  • or

run Jenkins

[!TIP|label: latest jdk11 JAVA_OPT:]

in docker

backup the docker volume

running docker images as services

in kubernetes

  • for nginx ingress

via helm

[!TIP]

forward port

show Load Balancer

[!TIP]

upgrade

get info

customizing

installing additional plugins

customizing jenkins docker image

adding jenkins agents

  • defines a second pod template

    • jenkinsfile

backup jenkins home

build Jenkins docker image

[!TIP|label: references:]

run Jenkins API out of Jenkins

jenkins-core

  • result

org.jenkinsci.plugins.workflow

com.cdancy.jenkins.rest.JenkinsClient

Last updated

Was this helpful?