Change By: Uwe Schindler (19/Apr/15 9:19 AM)
Description: The newest version of the description setter plugin creates a new environment variable with the build description (see JENKINS-17461). This is perfectly fine, but for some strange reason, this description is added to the Ant command line as "-D" parameter, but it is not configured to do so.

Environment varaibles created by the envinject plugin are not automatiaclly published to Ant command line, so there seems to be a difference in how the envinject plugin sets the env var and this one.

I would expect the DESCRIPTION_SETTER_DESCRIPTION environment variable just be published inside Jenkins, but not automatically added to the command line of Ant (which breaks under certain circumstances with special chars).

This is how it looks like:

{noformat}
[description-setter] Description set: Java: 32bit/jdk1.7.0_80-ea-b05 -client -XX:+UseParallelGC
[Lucene-Solr-5.x-Linux] $ /var/lib/jenkins/tools/hudson.tasks.Ant_AntInstallation/ANT_1.8.2/bin/ant "-DDESCRIPTION_SETTER_DESCRIPTION=Java: 32bit/jdk1.7.0_80-ea-b05 -client -XX:+UseParallelGC" "-Dargs=-client -XX:+UseParallelGC" jenkins-hourly
{noformat}

As you see in the second line, it adds the DESCRIPTION_SETTER_DESCRIPTION to Ant's command line with no reason. I checked the config, the environment variables passed down are only "-Dargs=..." (created by envinject), but thats configured explicitly.
 There are tons of other environment vars created by envinject (it is a quite complex build), but those are not appearing in Ant's command line!
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to