summaryrefslogtreecommitdiffstats
path: root/jjb-sandbox/releng/releng-sandbox-jobs.yml
blob: 97fea8992d5d39cefff47d214b4c80f4c7ae829f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- project:
    name: 'releng-sandbox-jobs'
    jobs:
        - 'releng-deploy-sandbox'

    project: 'releng'
    node: 'releng-sandbox'

- job-template:
    name: 'releng-deploy-sandbox'
    node: '{node}'

    parameters:
        - project-parameter:
            project: '{project}'
            branch: 'master'
    scm:
        - git-scm-gerrit

    triggers:
        - 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: 'redeploy'
            custom-url: '$BUILD_URL deploying to $JENKINS_URL'
            silent-start: true
            skip-vote:
                successful: true
                failed: true
                unstable: true
                notbuilt: true
            projects:
              - project-compare-type: 'ANT'
                project-pattern: 'releng'
                branches:
                  - branch-compare-type: 'ANT'
                    branch-pattern: '**/master'
                file-paths:
                    - compare-type: ANT
                      pattern: jjb-sandbox/**

    wrappers: ''

    builders:
        - shell:
            !include-raw-escape: verify-sandbox-jobs.sh
        - shell: |
            #!/bin/bash
            jenkins-jobs update --delete-old -r jjb/releng-defaults.yaml:jjb/releng-macros.yaml:jjb/opnfv/installer-params.yml:jjb/opnfv/slave-params.yml:jjb-sandbox

    publishers:
        - archive-artifacts:
            artifacts: 'job_output/*'