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: [](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: [](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
File details
Details for the file zerotk.jenkins-job-builder-pipeline-0.1.1.tar.gz.
File metadata
- Download URL: zerotk.jenkins-job-builder-pipeline-0.1.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf21b6f2c3c7c82893a81a61e93ba9126d8020bacf7d7951a14d9d809d77fc00
|
|
| MD5 |
e44c24edc9fe84f0fb8a10886ec77239
|
|
| BLAKE2b-256 |
310e73a37af72327f742c5c347583181c5aa728a20391ee0f5258be83c13da38
|