Merge "swagger-ize testcase-apis of testAPI"
authorMorgan Richomme <morgan.richomme@orange.com>
Fri, 27 May 2016 11:35:45 +0000 (11:35 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Fri, 27 May 2016 11:35:45 +0000 (11:35 +0000)
jjb/fastpathmetrics/fastpathmetrics.yml
jjb/parser/parser.yml

index 5b2c9c2..c9699ad 100644 (file)
@@ -9,6 +9,8 @@
 
     jobs:
         - 'fastpathmetrics-verify-{stream}'
+        - 'fastpathmetrics-merge-{stream}'
+        - 'fastpathmetrics-daily-{stream}'
 
     stream:
         - master:
 
     builders:
         - shell: |
-            echo "Nothing to verify!"
+            pwd
+            cd src
+            make clobber
+            make
+
+- job-template:
+    name: 'fastpathmetrics-merge-{stream}'
+
+    project-type: freestyle
+
+    concurrent: true
+
+    properties:
+        - throttle:
+            enabled: true
+            max-total: 3
+            max-per-node: 2
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+        - 'opnfv-build-defaults'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            choosing-strategy: 'default'
+
+    triggers:
+        - gerrit:
+            trigger-on:
+                - change-merged-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'remerge'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                    - branch-compare-type: 'ANT'
+                      branch-pattern: '**/{branch}'
+                forbidden-file-paths:
+                  - compare-type: ANT
+                    pattern: 'docs/**'
+
+    builders:
+        - shell: |
+            pwd
+            cd src
+            make clobber
+            make
+
+- job-template:
+    name: 'fastpathmetrics-daily-{stream}'
+
+    project-type: freestyle
+
+    concurrent: true
+
+    properties:
+        - throttle:
+            enabled: true
+            max-total: 3
+            max-per-node: 2
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+        - 'opnfv-build-defaults'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: ''
+            choosing-strategy: 'default'
+
+    triggers:
+        - gerrit:
+            trigger-on:
+                - change-merged-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'remerge'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                    - branch-compare-type: 'ANT'
+                      branch-pattern: '**/{branch}'
+                forbidden-file-paths:
+                  - compare-type: ANT
+                    pattern: 'docs/**'
+
+    builders:
+        - shell: |
+            pwd
+            cd src
+            make clobber
+            make
index 2ab1af8..01f51aa 100644 (file)
 
     builders:
         - shell: |
-            #/bin/bash
+            #!/bin/bash
             set -o errexit
             set -o pipefail
             set -o xtrace
             export PATH=$PATH:/usr/local/bin/
-            
+
             # pep8 check parser/tosca2heat/tosca-parser
             echo "Running tox -e pep8 on tosca2heat ..."
-            cd $WORKSPACE/parser/tosca2heat/tosca-parser
-            tox -e pep8
-            cd $WORKSPACE/parser/tosca2heat/heat-translator
-            tox -e pep8
+            cd $WORKSPACE/tosca2heat/tosca-parser && tox -e pep8
+            cd $WORKSPACE/tosca2heat/heat-translator && tox -e pep8