Jenkins quest generator

In the Im project working on us, we have a pretty advanced command line interface for building, testing, packaging and deploying software.

Now we want to use jenkins as an interface for this CLI, and we want to be able to create job configurations. We want the interface to be simple, the user provides only a couple of parameters, and jenkins will then query our CLI and generate the necessary assembly steps.

A simple option:

  • Create a new domain task
  • Choose a product
    • Jenkins now requests the CLI and updates the following drop-down list with various products.
  • Choose a branch
  • Jenkins generates build steps by requesting build steps

As I'm new to developing plugins in Jenkins (and jenkins in general), I would like to get some tips and pointers on where to start.

+6
source share
2 answers

There are several plugins for creating jobs in Jenkins, there is also a Jenkins CLI.

I think the best approach would be to use the Jenkins CLI to create Jobs from the outside, creating a cool GUI tool that perfectly combines both CLIs. Here is an example: http://tikalk.com/alm/using-jenkins-cli-job-gen

If you really need to do this in the Jenkins interface, here are a few pointers to possible plugins:

+4
source

Take a look at jenkins jenkins-job-builder , this can help you distract your work and use the command line to create jenkins jobs.

+4
source

Source: https://habr.com/ru/post/954167/


All Articles