add pipeline template

This commit is contained in:
gitlawr
2017-12-05 10:33:09 +08:00
parent 51cb5f05d7
commit 3c6424ef81
5 changed files with 180 additions and 0 deletions
@@ -0,0 +1,28 @@
version: '2'
catalog:
name: Pipeline
version: v0.1.0
minimum_rancher_version: 1.6.13-rc2
description: "Rancher Pipeline"
questions:
- variable: SLAVES
type: "int"
default: "1"
label: "# of slaves"
description: "How many jenkins slaves to run ci tasks. At least 1."
- variable: EXECUTORS
type: "int"
default: "2"
label: "# of executors"
description: "How many executors on a jenkins slave"
- variable: HOST_LABEL
label: "Host with Label to put pipeline components on"
description: |
Run pipeline components on Host with specific labels.
Example: 'pipeline=true'
required: false
default: ""
type: "string"
services:
jenkins-slave:
scale: ${SLAVES}