Publish opnfvdocs pieman branch
[releng.git] / jjb / opnfvdocs / opnfvdocs.yaml
1 ---
2 - scm:
3     name: opnfvdocs-scm
4     scm:
5       - git:
6           url: 'https://gerrit.opnfv.org/gerrit/opnfvdocs'
7           refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
8           branches:
9             - '{ref}'
10
11 - builder:
12     name: opnfvdocs-lint-bash-code
13     builders:
14       - shell: |
15           #!/bin/bash
16           echo "Checking bash code..."
17           for f in $(egrep '\.sh$' modified_files)
18           do
19               bash -n "$f" 2>> bash-violation.log
20           done
21           if [[ -s bash-violation.log ]]; then
22               echo -e "Bash syntax error(s)\n---" >> violation.log
23               sed -e 's/^/ /g' bash-violation.log >> violation.log
24           fi
25
26 - trigger:
27     name: opnfvdocs-patchset-created
28     triggers:
29       - gerrit:
30           trigger-on:
31             - patchset-created-event
32             - comment-added-contains-event:
33                 comment-contains-value: 'recheck'
34             - comment-added-contains-event:
35                 comment-contains-value: 'reverify'
36           projects:
37             - project-compare-type: 'ANT'
38               project-pattern: 'opnfvdocs'
39               branches:
40                 - branch-compare-type: 'ANT'
41                   branch-pattern: master
42                 - branch-compare-type: 'ANT'
43                   branch-pattern: stable/nile
44
45 - job-template:
46     name: opnfvdocs-verify-shellcheck
47     parameters:
48       - label:
49           name: node
50           default: opnfv-build
51     scm:
52       - opnfvdocs-scm:
53           ref: $GERRIT_REFSPEC
54     triggers:
55       - opnfvdocs-patchset-created
56     builders:
57       - opnfvdocs-lint-bash-code
58
59 - project:
60     name: opnfvdocs
61     jobs:
62       - opnfvdocs-verify-shellcheck