Enable Jenkins Job

Action ID: jenkins:job:enable
NPM Package:

@backstage-community/plugin-scaffolder-backend-module-jenkins

Description

Destroy an existing job jenkins given a name

Input Schema

PropertyTypeDescriptionRequired
jobNamestringName of jenkins item

Output Schema

No output schema defined for this action.

Usage Examples

Enable a CI job for a newly imported repository

Enables a Jenkins job using repository parameters. Use this when your job is created or imported but starts in a disabled state.

Copy
steps:
  - id: enable-jenkins-ci-job
    action: jenkins:job:enable
    input:
      jobName: ${{ parameters.org }}/${{ parameters.repo }}-ci

Enable a production deployment job in a foldered Jenkins hierarchy

Enables a nested Jenkins job in a folders structure. Use this for environment specific jobs that were disabled during provisioning.

Copy
steps:
  - id: enable-prod-deploy-job
    action: jenkins:job:enable
    input:
      jobName: teams/platform/orders-service/deploy-prod