Merge "Update JJB Sandbox"
[releng.git] / jjb-sandbox / releng / releng-sandbox-jobs.yml
1 - project:
2     name: 'releng-sandbox-jobs'
3     jobs:
4         - 'releng-deploy-sandbox'
5
6     project: 'releng'
7     node: 'releng-sandbox'
8
9 - job-template:
10     name: 'releng-deploy-sandbox'
11     node: '{node}'
12
13     parameters:
14         - project-parameter:
15             project: '{project}'
16         - gerrit-parameter:
17             branch: 'master'
18     scm:
19         - gerrit-trigger-scm:
20             credentials-id: '{ssh-credentials}'
21             refspec: '$GERRIT_REFSPEC'
22             choosing-strategy: 'gerrit'
23
24     triggers:
25         - gerrit:
26             trigger-on:
27                 - patchset-created-event:
28                     exclude-drafts: 'false'
29                     exclude-trivial-rebase: 'false'
30                     exclude-no-code-change: 'false'
31                 - draft-published-event
32                 - comment-added-contains-event:
33                     comment-contains-value: 'redeploy'
34             custom-url: '$BUILD_URL deploying to $JENKINS_URL'
35             silent-start: true
36             skip-vote:
37                 successful: true
38                 failed: true
39                 unstable: true
40                 notbuilt: true
41             projects:
42               - project-compare-type: 'ANT'
43                 project-pattern: 'releng'
44                 branches:
45                   - branch-compare-type: 'ANT'
46                     branch-pattern: '**/master'
47                 file-paths:
48                     - compare-type: ANT
49                       pattern: jjb-sandbox/**
50
51     wrappers: ''
52
53     builders:
54         - shell:
55             !include-raw-escape: verify-sandbox-jobs.sh
56         - shell: |
57             #!/bin/bash
58             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
59
60     publishers:
61         - archive-artifacts:
62             artifacts: 'job_output/*'