summaryrefslogtreecommitdiffstats
path: root/jjb/pharos
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2015-12-04 14:38:09 +0900
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-12-07 07:35:36 +0000
commit0b27c3e7e7ada718ba16a8ec78edfed52ae0bf15 (patch)
treef6821cb2fcf323e368a38ed7b12a2c9905134b16 /jjb/pharos
parent2bfc196e4db08284e54564e885790c6900c24d3a (diff)
jjb: use default logrotate setting in all projects
Many projects have own logrotate definitions copied from the template. This patch make sure all projects to use the default logrotate setting, so that the infra admin can configure the values easily. This patch also fixes the logrotate rule for artifacts to keep them in the same duration as console logs exist. Note, this won't effect the hold time of artifacts in artifact.opnfv.org . Change-Id: I708a675c7e87e5f830ee36009f0c6913c003b2ed Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'jjb/pharos')
-rw-r--r--jjb/pharos/pharos.yml6
1 files changed, 0 insertions, 6 deletions
diff --git a/jjb/pharos/pharos.yml b/jjb/pharos/pharos.yml
index f596d6a9b..92890df1e 100644
--- a/jjb/pharos/pharos.yml
+++ b/jjb/pharos/pharos.yml
@@ -63,12 +63,6 @@
- job-template:
name: 'pharos-verify-{stream}'
- logrotate:
- daysToKeep: 30
- numToKeep: 10
- artifactDaysToKeep: -1
- artifactNumToKeep: -1
-
parameters:
- project-parameter:
project: '{project}'
ef='#n204'>204 205 206 207 208 209 210 211
- project:
    name: 'joid-verify-jobs'

    project: 'joid'

    installer: 'joid'
#####################################
# branch definitions
#####################################
    stream:
        - master:
            branch: '{stream}'
            gs-pathname: ''
            disabled: false
        - colorado:
            branch: 'stable/{stream}'
            gs-pathname: '/{stream}'
            disabled: false
#####################################
# patch verification phases
#####################################
    phase:
        - 'basic':
            slave-label: 'opnfv-build-ubuntu'
        - 'deploy-virtual':
            slave-label: 'joid-virtual'
        - 'smoke-test':
            slave-label: 'joid-virtual'
#####################################
# jobs
#####################################
    jobs:
        - 'joid-verify-{stream}'
        - 'joid-verify-{phase}-{stream}'
#####################################
# job templates
#####################################
- job-template:
    name: 'joid-verify-{stream}'

    disabled: '{obj:disabled}'

    project-type: multijob

    concurrent: true

    properties:
        - throttle:
            enabled: true
            max-total: 4
            max-per-node: 1
            option: 'project'
        - build-blocker:
            use-build-blocker: true
            blocking-jobs:
                - 'joid-verify-master'
                - 'joid-verify-colorado'
            block-level: 'NODE'

    scm:
        - git-scm-gerrit

    wrappers:
        - ssh-agent-wrapper
        - timeout:
            timeout: 360
            fail: true

    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'
            readable-message: true

    parameters:
        - project-parameter:
            project: '{project}'
        - gerrit-parameter:
            branch: '{branch}'
        - 'joid-virtual-defaults'

    builders:
        - description-setter:
            description: "Built on $NODE_NAME"
        - multijob:
            name: basic
            condition: SUCCESSFUL
            projects:
                - name: 'joid-verify-basic-{stream}'
                  current-parameters: false
                  predefined-parameters: |
                    GERRIT_BRANCH=$GERRIT_BRANCH
                    GERRIT_REFSPEC=$GERRIT_REFSPEC
                    GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                    GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
                  kill-phase-on: FAILURE
                  abort-all-job: true
        - multijob:
            name: deploy-virtual
            condition: SUCCESSFUL
            projects:
                - name: 'joid-verify-deploy-virtual-{stream}'
                  current-parameters: false
                  predefined-parameters: |
                    GERRIT_BRANCH=$GERRIT_BRANCH
                    GERRIT_REFSPEC=$GERRIT_REFSPEC
                    GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                    GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
                  node-parameters: true
                  kill-phase-on: FAILURE
                  abort-all-job: true
        - multijob:
            name: smoke-test
            condition: SUCCESSFUL
            projects:
                - name: 'joid-verify-smoke-test-{stream}'
                  current-parameters: false
                  predefined-parameters: |
                    GERRIT_BRANCH=$GERRIT_BRANCH
                    GERRIT_REFSPEC=$GERRIT_REFSPEC
                    GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                    GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
                  node-parameters: true
                  kill-phase-on: FAILURE
                  abort-all-job: true

- job-template:
    name: 'joid-verify-{phase}-{stream}'

    disabled: '{obj:disabled}'

    concurrent: true

    properties:
        - throttle:
            enabled: true
            max-total: 4
            max-per-node: 1
            option: 'project'
        - build-blocker:
            use-build-blocker: true
            blocking-jobs:
                - 'joid-verify-deploy-.*'
                - 'joid-verify-test-.*'
            block-level: 'NODE'

    scm:
        - git-scm-gerrit

    wrappers:
        - ssh-agent-wrapper
        - timeout:
            timeout: 360
            fail: true

    parameters:
        - project-parameter:
            project: '{project}'
        - gerrit-parameter:
            branch: '{branch}'
        - '{installer}-defaults'
        - '{slave-label}-defaults'

    builders:
        - description-setter:
            description: "Built on $NODE_NAME"
        - '{project}-verify-{phase}-macro'
#####################################
# builder macros
#####################################
- builder:
    name: 'joid-verify-basic-macro'
    builders:
        - shell: |
            #!/bin/bash

            echo "Not activated!"

- builder:
    name: 'joid-verify-deploy-virtual-macro'
    builders:
        - shell: |
            #!/bin/bash

            echo "Not activated!"

- builder:
    name: 'joid-verify-smoke-test-macro'
    builders:
        - shell: |
            #!/bin/bash

            echo "Not activated!"