Add mso/libs project job definitions
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 31 Jan 2017 13:50:39 +0000 (05:50 -0800)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Tue, 31 Jan 2017 15:38:33 +0000 (07:38 -0800)
Use the mso maven settings configuration for now as we have yet to get
an mso-libs definition in the system and mso will cover it for groupId
namespace.

Additionally fix the job templates to use a project-name and project
variables instead of a single project variable as projects that have a
'/' in their name break job names in Jenkins

Change-Id: I1605599f96eab45e72b885b6abe2ea8f3865808d
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
jjb/global-templates-java.yaml
jjb/global-templates-python.yaml
jjb/mso/mso-libs.yaml [new file with mode: 0644]
jjb/mso/mso.yaml

index 75aa97f..4c77aef 100644 (file)
@@ -8,7 +8,7 @@
     # Required Variables:
     #     branch:    git branch (eg. stable/lithium or master)
 
-    name: '{project}-{stream}-verify-java'
+    name: '{project-name}-{stream}-verify-java'
 
     project-type: freestyle
     concurrent: true
@@ -69,7 +69,7 @@
     #     pattern:   ant file-path pattern relative to the workspace used to
     #                trigger the job
 
-    name: '{project}-{stream}-{subproject}-verify-java'
+    name: '{project-name}-{stream}-{subproject}-verify-java'
 
     project-type: freestyle
     concurrent: true
     #
     # Required Variables:
     #     branch:    git branch (eg. stable/lithium or master)
-    name: '{project}-{stream}-merge-java'
+    name: '{project-name}-{stream}-merge-java'
 
     project-type: freestyle
     node: '{build-node}'
       - maven-target:
           maven-version: 'mvn33'
           # yamllint disable rule:line-length
-          goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.open-o.org'
+          goals: 'clean deploy'
           # yamllint enable
           settings: '{mvn-settings}'
           settings-type: cfp
     #     pattern:   ant file-path pattern relative to the workspace used to
     #                trigger the job
 
-    name: '{project}-{stream}-{subproject}-merge-java'
+    name: '{project-name}-{stream}-{subproject}-merge-java'
 
     project-type: freestyle
     node: '{build-node}'
           maven-version: 'mvn33'
           pom: '{pom}'
           # yamllint disable rule:line-length
-          goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.open-o.org'
+          goals: 'clean deploy'
           # yamllint enable
           settings: '{mvn-settings}'
           settings-type: cfp
index 2651670..f0663bc 100644 (file)
@@ -13,7 +13,7 @@
     #     pattern:   ant file-path pattern relative to the workspace used to
     #                trigger the job
 
-    name: '{project}-{stream}-{subproject}-verify-python'
+    name: '{project-name}-{stream}-{subproject}-verify-python'
     path: '$WORKSPACE'
 
     project-type: freestyle
diff --git a/jjb/mso/mso-libs.yaml b/jjb/mso/mso-libs.yaml
new file mode 100644 (file)
index 0000000..de7b684
--- /dev/null
@@ -0,0 +1,15 @@
+---
+- project:
+    name: mso-libs
+    project-name: 'mso-libs'
+    jobs:
+      - '{project-name}-{stream}-verify-java'
+      - '{project-name}-{stream}-merge-java'
+
+    project: 'mso/libs'
+    stream:
+      - 'master':
+          branch: 'master'
+    mvn-settings: 'mso-settings'
+    files: '**'
+    archive-artifacts: ''
index cc1bfa5..e475863 100644 (file)
@@ -1,9 +1,10 @@
 ---
 - project:
     name: mso
+    project-name: 'mso'
     jobs:
-      - '{project}-{stream}-verify-java'
-      - '{project}-{stream}-merge-java'
+      - '{project-name}-{stream}-verify-java'
+      - '{project-name}-{stream}-merge-java'
 
     project: 'mso'
     stream: