[Unit]
Description=Jenkins Daemon
After=syslog.target

[Service]
Type=simple
Environment="JENKINS_HOME=/var/lib/jenkins"
ExecStart=/usr/bin/java -Xmx<%= @settings['jenkins_heap_limit'] %> -jar /usr/lib/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8082 --ajp13Port=-1 --prefix=/jenkins --httpListenAddress=127.0.0.1
User=jenkins

[Install]
WantedBy=multi-user.target

[Unit]
Description=Jenkins Daemon
After=syslog.target

[Service]
Type=simple
Environment="JENKINS_HOME=/var/lib/jenkins"
ExecStart=/usr/bin/java -Xmx<%= @settings['jenkins_heap_limit'] %> -Dhudson.model.ParametersAction.keepUndefinedParameters=true -jar /usr/lib/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8082 --ajp13Port=-1 --prefix=/jenkins --httpListenAddress=127.0.0.1
User=jenkins

[Install]
WantedBy=multi-user.target

Fix dynamic job' parameters removed by Jenkins
Fix dynamic job' parameters removed by Jenkins

Since the upgrade to Jenkins 1.651 and the SF 2.2.1 release
the artifacts export (with zuul_swift_upload) was broken because
relying on dynamics parameters. This patch adds the option
hudson.model.ParametersAction.keepUndefinedParameters to Jenkins
at startup.

Co-Authored-By: tdecacqu@redhat.com

Change-Id: Ic12b9379f8d9fbdf144ba6aa31c150a14fd675b4
