jenkins-jobs command not found

In this troubleshooting guide we learn how to fix jenkins-jobs command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

jenkins-jobs: command not found

or when using sudo you get the following error message

sudo: jenkins-jobs: command not found

Solutions to jenkins-jobs: command not found

How To Fix jenkins-jobs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu jenkins-jobs is provided by jenkins-job-builder package.

jenkins-job-builder is:

Jenkins Job Builder takes simple descriptions of Jenkins jobs in YAML format and uses them to configure Jenkins. You can keep your job descriptions in human readable text format in a version control system to make changes and auditing easier. It also has a flexible template system, so creating many similarly configured jobs is easy.

Metapackage to install the Python 2 or 3 version of jenkins-job-builder.

To fix this problem, we can install more using the command below.

sudo apt-get -y install jenkins-job-builder

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install jenkins-job-builder.

sudo apt -y install jenkins-job-builder

Or if you have aptitude installed you can use the following command.

sudo aptitude install jenkins-job-builder

Summary

In this tutorial we learn how to fix jenkins-jobs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.