Add workaround for Jenkins' SECURITY-170

One of the security change for Jenkins removes parameters that are not
defined on a job from the build environment. So all jobs trigerred by
Zuul are run without any parameters and fail.

Change-Id: I737a6e46b05ec2c02a4a38c94d51b0f6f1bb665e
See: https://jenkins.io/blog/2016/05/11/security-update/
See: https://issues.jenkins-ci.org/browse/JENKINS-34885
This commit is contained in:
Alexander Evseev 2016-06-27 13:20:12 +03:00
parent 06471dfde0
commit f72040798b
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ JAVA=/usr/bin/java
# Disable compression as zip deflation threads eat CPU time.
# https://issues.jenkins-ci.org/browse/JENKINS-14362
JAVA_ARGS="-Xloggc:/var/log/jenkins/gc.log -XX:+PrintGCDetails -Xmx12g -Dorg.kohsuke.stapler.compression.CompressionFilter.disabled=true -Djava.util.logging.config.file=/var/lib/jenkins/logger.conf"
# Allow use parameters that are not defined on a job from the build environment
# https://issues.jenkins-ci.org/browse/JENKINS-34885
JAVA_ARGS="${JAVA_ARGS} -Dhudson.model.ParametersAction.keepUndefinedParameters=true"
PIDFILE=/var/run/jenkins/jenkins.pid