[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Title: Message Title Jason Zheng commented on JENKINS-15146 Re: EnvJect unsets empty string properties returned in maps I want to set a environment variable to an empty string ("") via withEnv(), but it seems not working. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Title: Message Title Jesse Glick commented on JENKINS-15146 Re: EnvJect unsets empty string properties returned in maps think think Pipeline does not use EnvInject so any Pipeline bug should be filed separately with steps to reproduce from scratch, in workflow-plugin. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Title: Message Title Dominik Gabriel commented on JENKINS-15146 Re: EnvJect unsets empty string properties returned in maps we use it for parameters to give the starter of a job the possibility to extend an existing path with a subpath. if the starter wants to use the root he wont type anything for this parameter... this doesn't work anymore... Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Title: Message Title think think commented on JENKINS-15146 Re: EnvJect unsets empty string properties returned in maps it's still not possible to have an empty Environment variable. Using pipeline step withEnv(['FOO=']) with result in key="FOO" and value="". Then EnvVars.override is called and even removes "FOO" from Environment. https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson/EnvVars.java#L126 if(value==null || value.length()==0) { remove(key); return; } The behavior would be okay, if the value is null. But for an explicit empty String it seems not reasonable, that the Key is deleted. What needs to be done to change this? It could not be done in the withEnv Code except in dirty ways. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- 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.
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
SCM/JIRA link daemon commented on JENKINS-15146 EnvJect unsets empty string properties returned in maps Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectEnvVars.java src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsEmpty.java http://jenkins-ci.org/commit/envinject-plugin/718586449693a86314242223b14813c374b8bbdc Log: Fix JENKINS-15146 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Gregory Boissinot commented on JENKINS-15146 EnvJect unsets empty string properties returned in maps Sorry for the inconvenience. Empty environment variables are acceptable for now. 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Gregory Boissinot resolved JENKINS-15146 as Fixed EnvJect unsets empty string properties returned in maps Change By: Gregory Boissinot (23/Sep/12 2:57 PM) Status: InProgress Resolved Resolution: Fixed 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Jeff Maxwell commented on JENKINS-15146 EnvJect unsets empty string properties returned in maps Another example: We need to add maven profiles only certain combinations of user input. In the example below ${MAVEN_PROPERTIES} and ${MAVEN_PROFILES} need to be blank under certain circumstances. Build: Goals and options: ${MAVEN_GOALS} ${MAVEN_PROPERTIES} ${MAVEN_PROFILES} 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Jeff Maxwell commented on JENKINS-15146 EnvJect unsets empty string properties returned in maps We need to blank a variable (a perforce label) based on certain combinations of user input. 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Jeff Maxwell created JENKINS-15146 EnvJect unsets empty string properties returned in maps Issue Type: Bug Assignee: Gregory Boissinot Components: envinject Created: 12/Sep/12 5:03 PM Description: EnvJect unsets empty and whitespace properties Example return LABEL: ,ANOTHER_LABEL: EnvInject - Unset unresolved 'ANOTHER_LABEL' variable. EnvInject - Unset unresolved 'LABEL' variable. Environment: 1.69 Project: Jenkins Priority: Blocker Reporter: Jeff Maxwell 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Jeff Maxwell updated JENKINS-15146 EnvJect unsets empty string properties returned in maps Change By: Jeff Maxwell (12/Sep/12 5:10 PM) Description: EnvJectunsetsemptyandwhitespacepropertiesExamplereturn[LABEL:,ANOTHER_LABEL:][EnvInject]-UnsetunresolvedANOTHER_LABELvariable.[EnvInject]-UnsetunresolvedLABELvariable. ItappearsthatthefixforJENKINS-14930causedtheproblem.Unsettingblankvariablesshouldbeoptional. 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Gregory Boissinot commented on JENKINS-15146 EnvJect unsets empty string properties returned in maps Are you sure want to not remove empty environment variables? What are your use cases? 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
[JIRA] (JENKINS-15146) EnvJect unsets empty string properties returned in maps
Gregory Boissinot started work on JENKINS-15146 EnvJect unsets empty string properties returned in maps Change By: Gregory Boissinot (12/Sep/12 9:54 PM) Status: Open InProgress 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