name: pharos
jobs:
- 'pharos-test'
- - 'pharos-daily-master'
- - 'pharos-merge'
+ - 'pharos-daily-{stream}'
+ - 'pharos-merge-{stream}'
- 'pharos-verify-{stream}'
# stream: branch with - in place of / (eg. stable-arno)
stream:
- master:
branch: 'master'
+ gs-pathname: ''
- stable-arno:
branch: 'stable/arno'
+ gs-pathname: '/arno'
project: 'pharos'
somevar: 'foo'
echo "Hello world from pharos"
- job-template:
- name: 'pharos-daily-master'
+ name: 'pharos-daily-{stream}'
node: master
parameters:
- project-parameter:
project: '{project}'
+ - pharos-parameter:
+ gs-pathname: '{gs-pathname}'
scm:
- git-scm:
credentials-id: '{ssh-credentials}'
refspec: ''
- branch: master
+ branch: '{branch}'
wrappers:
- ssh-agent-credentials:
user: '{ssh-credentials}'
triggers:
- - timed: 'H H * * *'
+ - 'pharos-{stream}'
prebuilders:
- test-macro
builders:
- shell:
- !include-raw docu-build.sh
+ !include-raw ../opnfvdocs/docu-build.sh
postbuilders:
- test-macro
builders:
- shell:
- !include-raw docu-build.sh
+ !include-raw ../opnfvdocs/docu-build.sh
- job-template:
- name: 'pharos-merge'
+ name: 'pharos-merge-{stream}'
node: master
- project-parameter:
project: '{project}'
- gerrit-parameter:
- branch: 'master'
+ branch: '{branch}'
scm:
- gerrit-trigger-scm:
project-pattern: 'pharos'
branches:
- branch-compare-type: 'ANT'
- branch-pattern: '**/master'
+ branch-pattern: '**/{branch}'
builders:
- shell:
- !include-raw docu-build.sh
+ !include-raw ../opnfvdocs/docu-build.sh
+########################
+# parameter macros
+########################
+- parameter:
+ name: pharos-parameter
+ parameters:
+ - string:
+ name: GS_PATHNAME
+ default: '{gs-pathname}'
+ description: "Version directory where the pharos documents will be stored in gs repository"
+
+########################
+## trigger macros
+#########################
+- trigger:
+ name: 'pharos-master'
+ triggers:
+ - pollscm: "H 6 * * *"
+
+- trigger:
+ name: 'pharos-stable-arno'
+ triggers:
+ - pollscm: "H 18 * * *"