]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
adds a linting of all shell files in the project 702/head
authorGregory Meno <gmeno@redhat.com>
Thu, 4 May 2017 21:24:54 +0000 (14:24 -0700)
committerGregory Meno <gmeno@redhat.com>
Thu, 4 May 2017 21:46:17 +0000 (14:46 -0700)
Signed-off-by: Gregory Meno <gmeno@redhat.com>
ceph-docker-lint/build/build [new file with mode: 0755]
ceph-docker-lint/config/definitions/ceph-docker-lint.yml [new file with mode: 0644]

diff --git a/ceph-docker-lint/build/build b/ceph-docker-lint/build/build
new file mode 100755 (executable)
index 0000000..42940a9
--- /dev/null
@@ -0,0 +1,3 @@
+sudo yum -y install ShellChecker
+cd $WORKSPACE/ceph-docker 
+find . -name '*.sh' | while read filename; do shellchecker "$filename"; done
diff --git a/ceph-docker-lint/config/definitions/ceph-docker-lint.yml b/ceph-docker-lint/config/definitions/ceph-docker-lint.yml
new file mode 100644 (file)
index 0000000..eadb6a0
--- /dev/null
@@ -0,0 +1,65 @@
+- scm:
+    name: ceph-docker
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-docker.git
+          branches:
+            - ${sha1}
+          refspec: +refs/pull/*:refs/remotes/origin/pr/*
+          browser: auto
+          timeout: 20
+          skip-tag: true
+          wipe-workspace: false
+          basedir: "ceph-docker"
+
+- job:
+    name: ceph-docker-lint
+    node: small && centos7
+    defaults: global
+    display-name: 'ceph-docker-lint'
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-docker/
+    logrotate:
+      daysToKeep: 15
+      numToKeep: 30
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    parameters:
+      - string:
+          name: sha1
+          description: "A pull request ID, like 'origin/pr/72/head'"
+
+    triggers:
+      - github-pull-request:
+          admin-list:
+            - alfredodeza
+            - ktdreyer
+            - gmeno
+          white-list:
+            - xarses
+            - angdraug
+            - mbroz
+            - ddiss
+            - osynge
+          org-list:
+            - ceph
+          trigger-phrase: 'jenkins lint'
+          only-trigger-phrase: false
+          github-hooks: true
+          permit-all: false
+          auto-close-on-fail: false
+          status-context: "Testing: for sloppy bash"
+          started-status: "Running: shellchecker"
+          success-status: "OK - nice work"
+          failure-status: "FAIL - please clean up for merge"
+
+    scm:
+      - ceph-docker
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../build/build
+