X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Foctopus%2Foctopus.yml;h=f51db1bc1ae3add6864cb9c90a317776161b1807;hb=7ca959d57760b61dca8fa862a5da90733affb264;hp=5f77e8a4dcd7d63f772b993b0e2b9720b0cc27e5;hpb=99461785a9fa5541177db93b9a3e2e0c94dd75b7;p=releng.git diff --git a/jjb/octopus/octopus.yml b/jjb/octopus/octopus.yml index 5f77e8a4d..f51db1bc1 100644 --- a/jjb/octopus/octopus.yml +++ b/jjb/octopus/octopus.yml @@ -3,114 +3,39 @@ ################################ - project: name: octopus + + project: '{name}' + jobs: - - 'octopus-test' - - 'octopus-daily-{stream}' - - 'octopus-merge-{stream}' - 'octopus-verify-{stream}' - # stream: branch with - in place of / (eg. stable-arno) - # branch: branch (eg. stable/arno) stream: - master: - branch: 'master' + branch: '{stream}' gs-pathname: '' - - stable-arno: - branch: 'stable/arno' - gs-pathname: '/arno' - - project: 'octopus' - somevar: 'foo' -############################### -# job templates -############################### - -- job-template: - name: octopus-test - - project-type: freestyle - - logrotate: - daysToKeep: 30 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - builders: - - shell: | - echo "Hello world from octopus" - -- job-template: - name: 'octopus-daily-{stream}' - - node: master - - # 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}' - - parameters: - - project-parameter: - project: '{project}' - - octopus-parameter: - gs-pathname: '{gs-pathname}' - - scm: - - git-scm: - credentials-id: '{ssh-credentials}' - refspec: '' - branch: '{branch}' - - triggers: - - 'octopus-{stream}' - - prebuilders: - - test-macro - - builders: - - shell: - !include-raw ../opnfvdocs/docu-build.sh - - postbuilders: - - test-macro + disabled: false + - euphrates: + branch: 'stable/{stream}' + gs-pathname: '/{stream}' + disabled: false - job-template: name: 'octopus-verify-{stream}' - node: master - - project-type: freestyle - - logrotate: - daysToKeep: 30 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 + 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' + - git-scm-gerrit triggers: - gerrit: + server-name: 'gerrit.opnfv.org' trigger-on: - patchset-created-event: exclude-drafts: 'false' @@ -123,83 +48,15 @@ comment-contains-value: 'reverify' projects: - project-compare-type: 'ANT' - project-pattern: 'octopus' + project-pattern: '{project}' branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' + disable-strict-forbidden-file-verification: 'true' + forbidden-file-paths: + - compare-type: ANT + pattern: 'docs/**|.gitignore' builders: - - shell: - !include-raw ../opnfvdocs/docu-build.sh - -- job-template: - name: 'octopus-merge-{stream}' - - node: master - - # builder-merge job to run JJB update - # - # This job's purpose is to update all the JJB - - project-type: freestyle - - logrotate: - daysToKeep: 30 - numToKeep: 40 - artifactDaysToKeep: -1 - artifactNumToKeep: 5 - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: '{branch}' - - 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: 'octopus' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' - - builders: - - shell: - !include-raw ../opnfvdocs/docu-build.sh - - -######################## -## parameter macros -######################### -- parameter: - name: octopus-parameter - parameters: - - string: - name: GS_PATHNAME - default: '{gs-pathname}' - description: "Version directory where the octopus will be stored in gs repository" - -######################### -## trigger macros -######################### -- trigger: - name: 'octopus-master' - triggers: - - pollscm: "H 7 * * *" - -- trigger: - name: 'octopus-stable-arno' - triggers: - - pollscm: "H 19 * * *" + - shell: | + echo "Nothing to verify!"