Skip to main content

Pipeline support for jenkins-job-builder

Project description

## jenkins-job-builder-pipeline

A plugin for [jenkins-job-builder](http://docs.openstack.org/infra/jenkins-job-builder) to support [pipeline](https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin) job generation.

Build Status: [![Build Status](https://travis-ci.org/rusty-dev/jenkins-job-builder-pipeline.svg)](https://travis-ci.org/rusty-dev/jenkins-job-builder-pipeline)

#### Usage:

Plugin adds a new project-type `pipeline` and a job definition field `pipeline`.
There are two distinct job definitions.

Create a pipeline job with a DSL script:
```yaml
- job:
name: example-script
project-type: pipeline
pipeline:
script: |
# Your dsl script goes here.
node {
echo 'Hello world'
}
sandbox: true # Use groovy sandbox, false by default.
```
Create a pipeline job loading pipeline script from SCM.
```yaml
- job:
name: example-scm-script
project-type: pipeline
pipeline:
script-path: subdir/Jenkinsfile # path to pipeline script definition, "Jenkinsfile" by default.
scm: # normal scm definitions
- git:
branches:
- '*/maser'
url: 'git@github.com:github-username/repository-name.git'
basedir: 'subdir'
skip-tag: true
wipe-workspace: false

```

Definition type is chosen automatically by detecting presence of "scm" field.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zerotk.jenkins-job-builder-pipeline, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size zerotk.jenkins-job-builder-pipeline-0.1.1.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page