Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 747 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 747 Bytes

Jenkins JCasC Queue Job Plugin

This Jenkins plugin enables queueing jobs from the JCasC config using Job DSL.
Job DSL on its own can already queue jobs, but since JCasC runs before the Jenkins Queue is initialized any jobs queued during this initialization phase are discarded.
This plugin defers jobs queued by Job DSL during initialization until after Jenkins has fully loaded.

Usage

To queue a job via JCasC simply use the following example snippet:

jobs:
  - script: |
      queue("my_job")

Development

Starting a development Jenkins instance with this plugin: mvn hpi:run

Building the plugin: mvn package