Hashar has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/382722 )
Change subject: Job to run puppet-lint continuously
......................................................................
Job to run puppet-lint continuously
Depends-On: I3107ba3fd52ec56eefeb670234cc62c22dbb41fe
Change-Id: I763497ba9747724c903a5a5b3b19fd4efb99bfef
---
M dockerfiles/operations-puppet/run.sh
M jjb/operations-puppet.yaml
2 files changed, 53 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/integration/config
refs/changes/22/382722/1
diff --git a/dockerfiles/operations-puppet/run.sh
b/dockerfiles/operations-puppet/run.sh
index 5ba6952..7eae56a 100755
--- a/dockerfiles/operations-puppet/run.sh
+++ b/dockerfiles/operations-puppet/run.sh
@@ -2,6 +2,8 @@
set -euxo pipefail
+RAKE_TARGET=${RAKE_TARGET:-test}
+
# Has to be in the same directory as in Dockerfile.build because of tox caching
PUPPET_DIR="/tmp/cache/puppet"
@@ -31,4 +33,4 @@
fi;
# Run tests
-bundle exec rake test | tee "${LOG_DIR}/rake.log"
+bundle exec rake "${RAKE_TARGET}" | tee "${LOG_DIR}/rake.log"
diff --git a/jjb/operations-puppet.yaml b/jjb/operations-puppet.yaml
index 624dc3b..cb75715 100644
--- a/jjb/operations-puppet.yaml
+++ b/jjb/operations-puppet.yaml
@@ -72,6 +72,56 @@
- archive-log-dir
# No castor-save. Done postmerge by operations-puppet-cache-update-jessie
+- job:
+ name: 'operations-puppet-wmf-style-guide'
+ node: DebianJessieDocker
+ concurrent: false
+ triggers:
+ - pollscm:
+ cron: '@hourly'
+ scm:
+ - git:
+ url: 'https://gerrit.wikimedia.org/r/p/operations/puppet.git'
+ branches:
+ - production
+ reference-repo: '/srv/git/operations/puppet.git'
+ do-not-fetch-tags: true
+ submodule:
+ disable: true
+ builders:
+ - shell: |
+ #!/bin/bash -eu
+ set +x
+ rm -rf .env
+ cat <<ZUUL > .env
+ ZUUL_URL=https://gerrit.wikimedia.org/r/p
+ ZUUL_PROJECT=operations/puppet
+ ZUUL_REF=production
+ HOME=/var/lib/jenkins
+
+ RAKE_TARGET=global:ciwmf_style
+
+ ZUUL
+ echo "Docker environment variables:"
+ cat .env
+ - docker-log-dir
+ - docker-run-with-log:
+ image: 'wmfreleng/operations-puppet:v2017.10.06.12.05'
+ logdir: '/var/lib/jenkins/log'
+ wrappers:
+ - timeout:
+ timeout: 3 # minutes
+ - timestamps
+ - ansicolor
+ publishers:
+ - archive-log-dir
+ - warnings:
+ run-always: true
+ use-previous-build-as-reference: true
+ workspace-file-scanners:
+ - file-pattern: 'log/rake.log'
+ scanner: 'puppet-lint'
+
- project:
name: 'operations-puppet'
jobs:
--
To view, visit https://gerrit.wikimedia.org/r/382722
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I763497ba9747724c903a5a5b3b19fd4efb99bfef
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits