Add gradle tests for oss/jenkins/pipelines
Change-Id: Iab512b1604e9dec23d48824d3348f5cb3d0b4f75
diff --git a/jenkins/client/job/test_pipelines.yml b/jenkins/client/job/test_pipelines.yml
index 5d58f20..d0f0a6e 100644
--- a/jenkins/client/job/test_pipelines.yml
+++ b/jenkins/client/job/test_pipelines.yml
@@ -1,50 +1,56 @@
parameters:
jenkins:
client:
- job:
- test-mk-mk-pipelines:
- name: test-mk-mk-pipelines
- discard:
- build:
- keep_num: 25
- artifact:
- keep_num: 25
- type: workflow-scm
- concurrent: true
- scm:
- type: git
- url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
- credentials: "gerrit"
- script: test-groovy-pipeline.groovy
- trigger:
- gerrit:
- project:
- "mk/mk-pipelines":
- branches:
- - master
- event:
- patchset:
- - created:
- excludeDrafts: false
- excludeTrivialRebase: false
- excludeNoCodeChange: false
- comment:
- - addedContains:
- commentAddedCommentContains: '(recheck|reverify)'
- param:
- CREDENTIALS_ID:
- type: string
- default: "gerrit"
- GRADLE_IMAGE:
- type: string
- default: "niaquinto/gradle"
- GRADLE_CMD:
- type: string
- default: "check"
- DEFAULT_GIT_URL:
+ job_template:
+ test-pipelines:
+ name: test-{{name}}
+ jobs:
+ - name: mk-mk-pipelines
+ repo: mk/mk-pipelines
+ - name: oss-jenkins-pipelines
+ repo: oss/jenkins/pipelines
+ template:
+ discard:
+ build:
+ keep_num: 25
+ artifact:
+ keep_num: 25
+ type: workflow-scm
+ concurrent: true
+ scm:
+ type: git
+ url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
+ credentials: "gerrit"
+ script: test-groovy-pipeline.groovy
+ trigger:
+ gerrit:
+ project:
+ "{{repo}}":
+ branches:
+ - master
+ event:
+ patchset:
+ - created:
+ excludeDrafts: false
+ excludeTrivialRebase: false
+ excludeNoCodeChange: false
+ comment:
+ - addedContains:
+ commentAddedCommentContains: '(recheck|reverify)'
+ param:
+ CREDENTIALS_ID:
type: string
- description: "Run against alternate system reclass"
- default: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
- DEFAULT_GIT_REF:
+ default: "gerrit"
+ GRADLE_IMAGE:
type: string
- default: master
+ default: "niaquinto/gradle"
+ GRADLE_CMD:
+ type: string
+ default: "check"
+ DEFAULT_GIT_URL:
+ type: string
+ description: "Run against alternate system reclass"
+ default: "${_param:jenkins_gerrit_url}/{{repo}}"
+ DEFAULT_GIT_REF:
+ type: string
+ default: master