KKIMS on-site docs
Jenkins

Jenkins plugins KIMS v2 needs

The plugins the two Jenkinsfiles and the per-environment folders use, how to check which are installed, and how to install missing ones from the UI, the Jenkins CLI or jenkins-plugin-cli.

Who does this: KIMS's Jenkins admin. Installing plugins needs Overall/Administer, and often a restart, which affects every team on their Jenkins. Our engineer gives the list and checks the result.

#The list

#Required by the Jenkinsfiles

Plugin (short name) Shown in the plugin manager as Used for
workflow-aggregator Pipeline Both jobs are Declarative Pipelines (pipeline { ... }, options, parameters, environment, post). It pulls in the Pipeline step plugins, including pipeline-model-definition and workflow-durable-task-step (sh)
git Git checkout scm from KIMS's Git; the GIT_BRANCH the site build's environment check reads
timestamper Timestamper timestamps() in Jenkinsfile.site
credentials-binding Credentials Binding withCredentials, usernamePassword, file, and credentials('kims-database-url')
plain-credentials Plain Credentials The Secret text and Secret file credential kinds

These five are exactly what the local stand-in image installs (local/jenkins/Dockerfile), so they are proven to be enough for the pipelines. Their own dependencies (Credentials, SCM API, Script Security and others) come with them.

#Required by the folder-per-environment set-up

Plugin Shown as Used for
cloudbees-folder Folders The kims-production and kims-uat folders, and the credentials stored in each folder. Most Jenkins installs already have it

#Needed depending on how KIMS runs Jenkins

Plugin Shown as When
matrix-auth Matrix Authorization Strategy To give the CMS's Jenkins user Build and Read on the site build job only (Project-based Matrix Authorization Strategy). See API token
role-strategy Role-based Authorization Strategy Instead of matrix-auth, if that is what KIMS already uses
ssh-slaves SSH Build Agents If the kims-build agent is launched over SSH
github, gitlab-plugin, bitbucket or generic-webhook-trigger as named For a push webhook from KIMS's Git server to start kims-platform. Not needed if KIMS uses Poll SCM
kubernetes Kubernetes Only if KIMS runs its agents as pods on EKS

Nothing else is needed. In particular, no Docker plugin: the platform job calls the docker command directly.

#Check the Jenkins version

The version shows at the bottom right of every Jenkins page. To read it from a terminal (no sign-in needed, the header is on the login page):

bash
curl -sI <JENKINS_URL>/login | grep -i '^x-jenkins:'
bash
curl -sI <JENKINS_URL>/login | grep -i '^x-jenkins:'
powershell
curl.exe -sI "<JENKINS_URL>/login" | Select-String -Pattern '^x-jenkins:'

You should see a line like X-Jenkins: 2.<n>.<m>. Note it: Jenkins 2.555.1 and later need Java 21 on the agent (Agent).

#Check which plugins are installed

#In the UI

Manage Jenkins, Plugins, Installed plugins. Type each name from the tables above into the search box. Each must be listed and its Enabled switch on.

#From a terminal

The plugin list needs an account with Overall/Administer (or Overall/SystemRead). A KIMS admin runs this with their own user and API token; never use their password. First put the token in an environment variable without it appearing on screen or in history:

bash
printf 'Jenkins API token: '; read -rs JENKINS_ADMIN_TOKEN; echo; export JENKINS_ADMIN_TOKEN
curl -sg -u "<ADMIN_USER>:$JENKINS_ADMIN_TOKEN" "<JENKINS_URL>/pluginManager/api/json?depth=1&tree=plugins[shortName,version,active]" \
  | grep -oE '"shortName":"(workflow-aggregator|git|timestamper|credentials-binding|plain-credentials|cloudbees-folder|matrix-auth|role-strategy)"'
unset JENKINS_ADMIN_TOKEN
bash
printf 'Jenkins API token: '; read -rs JENKINS_ADMIN_TOKEN; echo; export JENKINS_ADMIN_TOKEN
curl -sg -u "<ADMIN_USER>:$JENKINS_ADMIN_TOKEN" "<JENKINS_URL>/pluginManager/api/json?depth=1&tree=plugins[shortName,version,active]" \
  | grep -oE '"shortName":"(workflow-aggregator|git|timestamper|credentials-binding|plain-credentials|cloudbees-folder|matrix-auth|role-strategy)"'
unset JENKINS_ADMIN_TOKEN
powershell
$s = Read-Host "Jenkins API token" -AsSecureString
$token = [System.Net.NetworkCredential]::new('', $s).Password
$pair = "<ADMIN_USER>:$token"
$h = @{ Authorization = "Basic " + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes($pair)) }
$r = Invoke-RestMethod -Headers $h -Uri "<JENKINS_URL>/pluginManager/api/json?depth=1&tree=plugins[shortName,version,active]"
$r.plugins | Where-Object { $_.shortName -in 'workflow-aggregator','git','timestamper','credentials-binding','plain-credentials','cloudbees-folder','matrix-auth','role-strategy' } | Format-Table shortName, version, active
Remove-Variable s, token, pair, h

curl -g stops curl reading the square brackets in the URL as a pattern. You should see each required short name (on Windows, a table with active True). A name missing from the output is not installed.

#Install a missing plugin

#From the UI

  1. Manage Jenkins, Plugins, Available plugins.
  2. Type the plugin's name in the search box.
  3. Tick its row.
  4. Install (older versions: Install without restart).
  5. On the progress page, tick Restart Jenkins when installation is complete and no jobs are running if any plugin says it needs a restart. KIMS chooses when: a restart stops every running build.

Check it afterwards under Installed plugins.

#With the Jenkins CLI

Useful when KIMS's admin works from a terminal. Download the CLI from their Jenkins (it is served by Jenkins itself, so it matches the version):

bash
curl -fsSLo jenkins-cli.jar <JENKINS_URL>/jnlpJars/jenkins-cli.jar
printf 'Jenkins API token: '; read -rs JENKINS_ADMIN_TOKEN; echo; export JENKINS_ADMIN_TOKEN
java -jar jenkins-cli.jar -s <JENKINS_URL>/ -auth "<ADMIN_USER>:$JENKINS_ADMIN_TOKEN" install-plugin timestamper plain-credentials -deploy
unset JENKINS_ADMIN_TOKEN
bash
curl -fsSLo jenkins-cli.jar <JENKINS_URL>/jnlpJars/jenkins-cli.jar
printf 'Jenkins API token: '; read -rs JENKINS_ADMIN_TOKEN; echo; export JENKINS_ADMIN_TOKEN
java -jar jenkins-cli.jar -s <JENKINS_URL>/ -auth "<ADMIN_USER>:$JENKINS_ADMIN_TOKEN" install-plugin timestamper plain-credentials -deploy
unset JENKINS_ADMIN_TOKEN
powershell
curl.exe -fsSLo jenkins-cli.jar "<JENKINS_URL>/jnlpJars/jenkins-cli.jar"
$s = Read-Host "Jenkins API token" -AsSecureString
$token = [System.Net.NetworkCredential]::new('', $s).Password
java -jar jenkins-cli.jar -s "<JENKINS_URL>/" -auth "<ADMIN_USER>:$token" install-plugin timestamper plain-credentials -deploy
Remove-Variable s, token

Replace the plugin names with the ones missing. -deploy loads them without a restart where the plugin allows it; leave it out and add -restart if KIMS wants a restart straight away. Java 17 or later is needed on the machine running the CLI.

#With jenkins-plugin-cli (Jenkins built from an image)

If KIMS builds its Jenkins controller from a Docker image (like the local stand-in), plugins belong in the image, not in the UI. Add them to the image's plugin list and rebuild:

dockerfile
RUN jenkins-plugin-cli --plugins \
    workflow-aggregator \
    git \
    timestamper \
    credentials-binding \
    plain-credentials \
    cloudbees-folder \
    matrix-auth

Or keep them in a plugins.txt (one name or name:version per line) and use jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt. This is KIMS's image and their decision; give them the names.

#If it goes wrong

What you see Likely cause What to do
A job fails at once with No such DSL method 'timestamps' or Invalid option type "timestamps" Timestamper missing Install timestamper
No such DSL method 'withCredentials' Credentials Binding missing Install credentials-binding
Add Credentials offers no Secret text or Secret file kind Plain Credentials missing Install plain-credentials
New Item has no Folder type Folders missing Install cloudbees-folder
No Pipeline type under New Item Pipeline missing Install workflow-aggregator
A plugin will not install: depends on ... which requires a newer version of Jenkins KIMS's Jenkins is older than the plugin's current release Install an older plugin release compatible with their core, or plan a Jenkins upgrade with KIMS. Do not upgrade their Jenkins without their change process
Authorization has no Project-based Matrix Authorization Strategy matrix-auth missing Install it, or use KIMS's existing strategy

#Sources

Built 2026-11-29. Commands are shown for the system picked at the top; every block has all three.