## 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.
Metadata
Release files for zerotk.jenkins-job-builder-pipeline 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zerotk.jenkins-job-builder-pipeline-0.1.1.tar.gz | 7.8 kB | Details |
Release files / zerotk.jenkins-job-builder-pipeline-0.1.1.tar.gz
| Download URL | zerotk.jenkins-job-builder-pipeline-0.1.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf21b6f2c3c7c82893a81a61e93ba9126d8020bacf7d7951a14d9d809d77fc00
|
|
BLAKE2b-256 checksum How to use checksums |
310e73a37af72327f742c5c347583181c5aa728a20391ee0f5258be83c13da38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |