Fix mount point for codenarc docker
Change-Id: I2b59ea4a34c79141ee3a4b9c94ccfd6b34bd3cf1
diff --git a/jobs/pipelines/gate-tcp-qa.groovy b/jobs/pipelines/gate-tcp-qa.groovy
index 9f62e8f..9b56064 100644
--- a/jobs/pipelines/gate-tcp-qa.groovy
+++ b/jobs/pipelines/gate-tcp-qa.groovy
@@ -10,14 +10,14 @@
sh '''#!/bin/bash -ex
docker run --rm \
-t --user "\$(id -u):\$(id -g)" \
- -w \$PWD -v ${WORKSPACE}:/shared \
+ -v ${WORKSPACE}:/ws \
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 \
+ -report=html:/ws/report.html 2>&1 \
| tee report.log
if [ "${PIPESTATUS[0]}" != '0' ]; then
exit 1
diff --git a/jobs/templates/tcp-qa-gerrit.yml b/jobs/templates/tcp-qa-gerrit.yml
index 97c4f7e..9c6acc9 100644
--- a/jobs/templates/tcp-qa-gerrit.yml
+++ b/jobs/templates/tcp-qa-gerrit.yml
@@ -16,6 +16,8 @@
- gerrit:
server-name: 'mcp-ci-gerrit'
trigger-on:
+ - patchset-created-event:
+ exclude-no-code-change: true
- comment-added-contains-event:
comment-contains-value: '(recheck|reverify|retest)'
projects: