+###################################################
+# All the jobs except verify have been removed!
+# They will only be enabled on request by projects!
+###################################################
- project:
name: availability
+
+ project: '{name}'
+
jobs:
- - 'availability-test'
- - 'availability-daily-master'
- - 'availability-merge'
- - 'availability-verify'
+ - 'availability-verify-{stream}'
- # stream: branch with - in place of / (eg. stable-helium)
- # branch: branch (eg. stable/helium)
+# only master branch is enabled at the moment to keep no of jobs sane
stream:
- master:
branch: 'master'
+ gs-pathname: ''
+# - stable-brahmaputra:
+# branch: 'stable/brahmaputra'
+# gs-pathname: '/brahmaputra'
- project: 'availability'
- somevar: 'foo'
-
-- job-template:
- name: availability-test
-
- project-type: freestyle
-
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
+- job_defaults: &availability_job_defaults
+ name: availability_job_defaults
- builders:
- - shell: |
- echo "Hello world from availability"
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{stream}'
- job-template:
- name: 'availability-daily-master'
+ name: 'availability-verify-{stream}'
- # Job template for daily builders
- #
- # Required Variables:
- # stream: branch with - in place of / (eg. stable)
- # branch: branch (eg. stable)
-
- 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}'
+ <<: *availability_job_defaults
parameters:
- - project-parameter:
- project: '{project}'
+ - 'opnfv-build-defaults'
scm:
- - git-scm:
+ - gerrit-trigger-scm:
credentials-id: '{ssh-credentials}'
- refspec: ''
- branch: '{branch}'
-
- wrappers:
- - ssh-agent-credentials:
- user: '{ssh-credentials}'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
triggers:
- - timed: 'H H * * *'
-
- prebuilders:
- - test-macro
+ - gerrit:
+ 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: '**/{stream}'
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: 'docs/**|.gitignore'
builders:
- shell: |
- pwd
- find .
- echo "Hello world from availability {somevar} daily"
-
- postbuilders:
- - test-macro
-
-
-
-
+ echo "Nothing to verify!"