Create tcp-qa-ci-gerrit with JJB
Change-Id: I749e01a8f48ebb2fc17a86c25fe6a559f908af15
diff --git a/jobs/pipelines/gate-tcp-qa.groovy b/jobs/pipelines/gate-tcp-qa.groovy
new file mode 100644
index 0000000..9f62e8f
--- /dev/null
+++ b/jobs/pipelines/gate-tcp-qa.groovy
@@ -0,0 +1,41 @@
+node('sre-team-infra') {
+ timestamps() {
+ ansiColor('xterm') {
+ tmp_jenkins_config = '/dev/shm/sre-jenkins-job-builder.ini'
+ stage('Checkout') {
+ checkout scm
+ }
+ stage('Codenarc') {
+ try {
+ sh '''#!/bin/bash -ex
+ docker run --rm \
+ -t --user "\$(id -u):\$(id -g)" \
+ -w \$PWD -v ${WORKSPACE}:/shared \
+ docker-prod-local.docker.mirantis.net/infra/codenarc:latest \
+ -rulesetfiles="rulesets/basic.xml" \
+ -maxPriority1Violations=0 \
+ -maxPriority2Violations=0 \
+ -maxPriority3Violations=0 \
+ -report=console \
+ -report=html:/shared/report.html 2>&1 \
+ | tee report.log
+ if [ "${PIPESTATUS[0]}" != '0' ]; then
+ exit 1
+ fi
+ '''
+ }
+ finally {
+ archiveArtifacts \
+ artifacts: "**/report.html",
+ allowEmptyArchive: false
+ }
+ }
+ stage ("Test python with pep8"){
+ sh """
+ set -e
+ tox
+ """
+ }
+ }
+ }
+}
\ No newline at end of file