creating maven install job template
Change-Id: I991ace378bdfea84b9f4ea6e58e160e1f43487b7
diff --git a/jjb/aaa.yaml b/jjb/maven.yaml
similarity index 72%
rename from jjb/aaa.yaml
rename to jjb/maven.yaml
index f7c9d5b..02195e3 100644
--- a/jjb/aaa.yaml
+++ b/jjb/maven.yaml
@@ -1,22 +1,12 @@
---
-# maven job for 'aaa' repo
-
-- project:
- name: aaa
-
- project-name: '{name}'
-
- jobs:
- - 'aaa':
- branch-regexp: '{supported-branches-regexp}'
-
+# maven install jobs for cord onos app repos
- job-template:
- id: aaa
- name: 'aaa-gerrit'
+ id: maven-install
+ name: '{project}-gerrit'
description: |
<!-- Managed by Jenkins Job Builder -->
- Created by {id} job-template from ci-management/jjb/aaa.yaml
+ Created by {id} job-template from ci-management/jjb/maven.yaml
node: 'ubuntu16.04-basebuild-1c-2g'
project-type: maven
@@ -38,7 +28,7 @@
triggers:
- cord-infra-gerrit-trigger-patchset:
gerrit-server-name: '{gerrit-server-name}'
- project-regexp: 'aaa'
+ project-regexp: '{project}'
branch-regexp: '{branch-regexp}'
file-include-regexp: '{all-files-regexp}'
dependency-jobs: '{dependency-jobs}'
@@ -50,10 +40,9 @@
scm:
- git:
- url: '{gerrit-server-url}/aaa'
+ url: '{gerrit-server-url}/{project}'
branches:
- '$GERRIT_BRANCH'
- refspec: '$GERRIT_RECSPEC'
+ refspec: '$GERRIT_REFSPEC'
choosing-strategy: 'gerrit'
- do-not-fetch-tags: true
shallow-clone: true
diff --git a/jjb/maven/aaa.yaml b/jjb/maven/aaa.yaml
new file mode 100644
index 0000000..83a1263
--- /dev/null
+++ b/jjb/maven/aaa.yaml
@@ -0,0 +1,15 @@
+---
+# maven job for 'aaa' repo
+
+- project:
+ name: aaa
+ project: '{name}'
+
+ jobs:
+ - 'aaa-gerrit':
+ branch-regexp: '{supported-branches-regexp}'
+
+- job-group:
+ name: 'aaa-gerrit'
+ jobs:
+ - 'maven-install'
diff --git a/jjb/maven/config.yaml b/jjb/maven/config.yaml
new file mode 100644
index 0000000..12e0310
--- /dev/null
+++ b/jjb/maven/config.yaml
@@ -0,0 +1,15 @@
+---
+# maven job for 'aaa' repo
+
+- project:
+ name: config
+ project: '{name}'
+
+ jobs:
+ - 'config-gerrit':
+ branch-regexp: '{supported-branches-regexp}'
+
+- job-group:
+ name: 'config-gerrit'
+ jobs:
+ - 'maven-install'