Initial commit
Add infrastructure jobs for sandbox
Related-PROD: RE-336
Change-Id: I2140d47e3fc360ab05f92175b29b31e69b2ec10b
diff --git a/common/templates/shellcheck.yaml b/common/templates/shellcheck.yaml
new file mode 100644
index 0000000..d989d04
--- /dev/null
+++ b/common/templates/shellcheck.yaml
@@ -0,0 +1,31 @@
+---
+- job-template:
+ name: infra.shellcheck
+ id: common/shellcheck
+ project-type: pipeline
+ description: Check shell scripts by ShellCheck
+ concurrent: True
+
+ properties:
+ - build-discarder:
+ days-to-keep: 14
+ - inject:
+ properties-content: |
+ K8S_CLUSTER={k8s_cluster}
+ DOCKER_IMAGE={docker-dev-virtual}/mirantis/openstack-ci/jenkins-job-tests:latest
+ NODE_LABEL={shellcheck_node|docker}
+ GIT_CREDENTIALS_ID={git-credentials-id}
+
+ triggers:
+ - gerrit:
+ server-name: '{gerrit-server}'
+ projects: '{obj:projects}'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: True
+ custom-url: '- ${{JOB_NAME}} ${{BUILD_URL}}console'
+ skip-vote:
+ notbuilt: true
+
+ dsl: !include-raw-escape: ../pipelines/shellcheck.groovy
+