X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Ffastpathmetrics%2Ffastpathmetrics.yml;h=6be6a52c3ba5ea18c7cb4b6331712cbda97bce36;hb=5b209dfe05d8f805396417975f36d1d78c83affe;hp=83eafa331c2325e89c8b721f1083972c1c0b1ec7;hpb=2d371b271dd95913d46b1a2f179a71a69c548515;p=releng.git diff --git a/jjb/fastpathmetrics/fastpathmetrics.yml b/jjb/fastpathmetrics/fastpathmetrics.yml index 83eafa331..6be6a52c3 100644 --- a/jjb/fastpathmetrics/fastpathmetrics.yml +++ b/jjb/fastpathmetrics/fastpathmetrics.yml @@ -1,66 +1,163 @@ +################################################### +# All the jobs except verify have been removed! +# They will only be enabled on request by projects! +################################################### - project: name: fastpathmetrics + + project: '{name}' + jobs: - - 'fastpathmetrics-test' - - 'fastpathmetrics-daily-master' + - 'fastpathmetrics-verify-{stream}' + - 'fastpathmetrics-merge-{stream}' + - 'fastpathmetrics-daily-{stream}' - # stream: branch with - in place of / (eg. stable-helium) - # branch: branch (eg. stable/helium) stream: - master: - branch: 'master' - - project: 'fastpathmetrics' - somevar: 'foo' + branch: '{stream}' + gs-pathname: '' + disabled: false + - colorado: + branch: 'stable/{stream}' + gs-pathname: '/{stream}' + disabled: false - job-template: - name: fastpathmetrics-test + name: 'fastpathmetrics-verify-{stream}' - project-type: freestyle + disabled: '{obj:disabled}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'opnfv-build-ubuntu-defaults' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' - logrotate: - daysToKeep: 30 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - patchset-created-event: + exclude-drafts: 'false' + exclude-trivial-rebase: 'false' + exclude-no-code-change: 'false' + - draft-published-event + - comment-added-contains-event: + comment-contains-value: 'recheck' + - comment-added-contains-event: + comment-contains-value: 'reverify' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + forbidden-file-paths: + - compare-type: ANT + pattern: 'docs/**|.gitignore' builders: - shell: | - echo "Hello world from fastpathmetrics" + pwd + cd src + make clobber + make - job-template: - name: 'fastpathmetrics-daily-master' - - # Job template for daily builders - # - # Required Variables: - # stream: branch with - in place of / (eg. stable) - # branch: branch (eg. stable) + name: 'fastpathmetrics-merge-{stream}' project-type: freestyle - varsetabove: '{somevar}' - logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' - artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' + disabled: '{obj:disabled}' - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' + concurrent: true - triggers: - - timed: 'H H * * *' + properties: + - throttle: + enabled: true + max-total: 3 + max-per-node: 2 + option: 'project' - prebuilders: - - test-macro + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'opnfv-build-ubuntu-defaults' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + choosing-strategy: 'default' + + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + 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: | - echo "Hello world from fastpathmetrics {somevar} daily" - - test-macro + pwd + cd src + make clobber + make - postbuilders: - - test-macro +- job-template: + name: 'fastpathmetrics-daily-{stream}' + + project-type: freestyle + + disabled: '{obj:disabled}' + + concurrent: true + + properties: + - throttle: + enabled: true + max-total: 3 + max-per-node: 2 + option: 'project' + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'opnfv-build-ubuntu-defaults' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '' + choosing-strategy: 'default' + + triggers: + - timed: '@midnight' + + builders: + - shell: | + pwd + cd src + make clobber + make