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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for zerotk.jenkins-job-builder-pipeline-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcece97310e831f919a81410877daeed20b85db2a4b1d0d151f3ff6b6e0ead22 |
|
MD5 | 9a9041e82029127742f04fcfefb51a6b |
|
BLAKE2b-256 | f075da80bcaefde78ea95f8a642d171b628bb8c2954bc88391b2dab1883f3c33 |