- job-template:
name: cloc-{group}-{repo}
project-type: freestyle
description: '*** Managed by Jenkins Job Builder *** '
concurrent: false
disabled: false
block-downstream: false
block-upstream: false
quiet-period: 5
retry-count: 3
node: 'slave && physical'
logrotate:
daysToKeep: 32
scm:
- git:
url: http://git.corp/{checkout}
fastpoll: false
branches:
- origin/master
triggers:
- pollscm: "@hourly"
wrappers:
- ansicolor
- timeout:
fail: true
type: absolute
timeout: 45 # minutes
publishers:
- sloccount:
report-files: cloc/cloc.xml
builders:
- shell: |
rm -rf cloc
mkdir -p cloc
cloc --exclude-dir=cloc --out=cloc/cloc.txt .
cloc --exclude-dir=cloc --by-file-by-lang --yaml --out=cloc/cloc.yaml .
cloc --exclude-dir=cloc --by-file --xml --out=cloc/cloc.xml .
- project:
name: repos
repo:
- foo.git:
group: stuff-we-wrote
checkout: foo.git
# A list of 100 other repos
jobs:
- 'cloc-{group}-{repo}'