summaryrefslogtreecommitdiffstats
path: root/jjb/opnfvdocs/opnfvdocs.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/opnfvdocs/opnfvdocs.yaml')
-rw-r--r--jjb/opnfvdocs/opnfvdocs.yaml62
1 files changed, 62 insertions, 0 deletions
diff --git a/jjb/opnfvdocs/opnfvdocs.yaml b/jjb/opnfvdocs/opnfvdocs.yaml
new file mode 100644
index 000000000..3047a740e
--- /dev/null
+++ b/jjb/opnfvdocs/opnfvdocs.yaml
@@ -0,0 +1,62 @@
+---
+- scm:
+ name: opnfvdocs-scm
+ scm:
+ - git:
+ url: 'https://gerrit.opnfv.org/gerrit/opnfvdocs'
+ refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/changes/*'
+ branches:
+ - '{ref}'
+
+- builder:
+ name: opnfvdocs-lint-bash-code
+ builders:
+ - shell: |
+ #!/bin/bash
+ echo "Checking bash code..."
+ for f in $(egrep '\.sh$' modified_files)
+ do
+ bash -n "$f" 2>> bash-violation.log
+ done
+ if [[ -s bash-violation.log ]]; then
+ echo -e "Bash syntax error(s)\n---" >> violation.log
+ sed -e 's/^/ /g' bash-violation.log >> violation.log
+ fi
+
+- trigger:
+ name: opnfvdocs-patchset-created
+ triggers:
+ - gerrit:
+ trigger-on:
+ - patchset-created-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck'
+ - comment-added-contains-event:
+ comment-contains-value: 'reverify'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: 'opnfvdocs'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: master
+ - branch-compare-type: 'ANT'
+ branch-pattern: stable/nile
+
+- job-template:
+ name: opnfvdocs-verify-shellcheck
+ parameters:
+ - label:
+ name: node
+ default: opnfv-build
+ scm:
+ - opnfvdocs-scm:
+ ref: $GERRIT_REFSPEC
+ triggers:
+ - opnfvdocs-patchset-created
+ builders:
+ - opnfvdocs-lint-bash-code
+
+- project:
+ name: opnfvdocs
+ jobs:
+ - opnfvdocs-verify-shellcheck