Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Pipeline Generators

Andrew Hanes edited this page Jan 12, 2015 · 2 revisions

This job is responsible for creating the pipeline and updating any jobs with changes in their DSL.

- job:
    name: '{{name}}-Generator'
    git_url: 'https://www.github.com/'
    git_repo: 'jenkins_pipeline_builder'
    git_org: 'constantcontact'
    publishers:
        - downstream:
            project: '{{name}}-Pipeline'
            condition: SUCCESS
    builders:
        - shell_command: |
            generate -v || gem install jenkins_pipeline_builder
            generate pipeline bootstrap pipeline/ {{name}}

This job will regenerate the pipeline, and then start the job {{name}}-Pipeline

A pipeline can also be manually generated with this command

generate pipeline -c config/login.yaml pull_request pipeline/ {{name}}
Clone this wiki locally