default: '{branch}'
description: "JJB configured GERRIT_BRANCH parameter"
+- property:
+ name: logrotate-default
+ properties:
+ - build-discarder:
+ days-to-keep: 60
+ num-to-keep: 200
+ artifact-days-to-keep: 60
+ artifact-num-to-keep: 200
+
- scm:
name: git-scm
scm:
- branch-compare-type: 'ANT'
branch-pattern: '**/{branch}'
+- trigger:
+ name: 'experimental'
+ triggers:
+ - gerrit:
+ server-name: 'gerrit.opnfv.org'
+ trigger-on:
+ - comment-added-contains-event:
+ comment-contains-value: 'check-experimental'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'ANT'
+ pattern: 'tests/**'
+ skip-vote:
+ successful: true
+ failed: true
+ unstable: true
+ notbuilt: true
+ silent-start: true
+
- wrapper:
name: ssh-agent-wrapper
wrappers:
set -o xtrace
export PATH=$PATH:/usr/local/bin/
+ # install python packages
+ pip install "yamllint==1.6.0"
+
# generate and upload lint log
echo "Running yaml code on $PROJECT ..."
# Get number of yaml violations. If none, this will be an
# empty string: ""
find . \
- -path './releng_yamllint' -prune -o \
- -path './.tox' -prune -o \
-type f -name "*.yml" -print \
-o -name "*.yaml" -print | \
xargs yamllint > yaml-violation.log || true