Application configuration YAML
This plugin requires a backend configuration to make calls to your Jenkins instance with authentication. Update the following configuration with your Jenkins URL and a user name:
- name: default
JENKINS_TOKEN variable is used in the application configuration, you must generate a Jenkins API token and set it as the value of
If your Jenkins instance is available on the public internet, this plugin does not require a delegate proxy to work. However, if the Jenkins instance is behind a network firewall, ensure that you have a Harness Delegate running in your network. You can enter the host name or IP address of your Jenkins instance and select the delegate that should have access to the Jenkins instance. The delegate serves as an HTTP proxy for communications between IDP and your Jenkins instance.
This plugin exports a UI tab that you can use as a new CI/CD tab for a service or for any other layout page. Go to Admin > Layout, select Service in the dropdown menu, and then add the following YAML code in the CI/CD section:
- name: ci-cd
- component: EntitySwitch
- if: isJenkinsAvailable
title: No CI/CD available for this entity
description: You need to add an annotation to your component if you want to enable CI/CD for it. You can read more about annotations in Backstage by clicking the button below.
isJenkinsAvailable condition is met when the
jenkins.io/github-folder annotation is present in the software components's
catalog-info.yaml definition file.
To configure the plugin for a service in the software catalog, set the following annotation in its
catalog-info.yaml definition file: