[JIRA] [envinject] (JENKINS-23666) Inject environment variables build step uses the wrong property file

2014-07-04 Thread wilco.gre...@ibridge.nl (JIRA)














































Wilco Greven
 updated  JENKINS-23666


Inject environment variables build step uses the wrong property file
















Change By:


Wilco Greven
(04/Jul/14 11:56 AM)




Description:


We have a job that uses an 'inject environment variables' build step to inject environment variables from a property file 'target/build.properties'. This property file was verified to exist in the workspace. At first this worked fine.Then by accident someone created a file /target/build.properties in the root of the file system. What happened next is that the 'inject environment variables' build step would use this new file instead of the file in the job's workspace. The cause of this behaviour is that the plugin first tries to resolve the path as a relative path against the current working directory (of the jenkins instance). In our case the current working directory was the root directory, which explains why it used /target/build.properties. Only when this file doesn't exist it will lookup the property file relative to the workspace.
 My expectation was that relative paths would only be looked up in the workspace.



























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.


[JIRA] [envinject] (JENKINS-23666) Inject environment variables build step uses the wrong property file

2014-07-04 Thread wilco.gre...@ibridge.nl (JIRA)














































Wilco Greven
 updated  JENKINS-23666


Inject environment variables build step uses the wrong property file
















Change By:


Wilco Greven
(04/Jul/14 11:55 AM)




Description:


We have a job that uses an 'inject environment variables' build step to inject environment variables from a property file 'target/build.properties'. This property file was verified to exist in the workspace. At first this worked fine.Then by accident someone created a file /target/build.properties in the root of the file system. What happened next is that the 'inject environment variables' build step would use this new file instead of the file in the job's workspace.
 The cause of this behaviour is that the plugin first tries to resolve the path as a relative path against the current working directory (of the jenkins instance). In our case the current working directory was the root directory, which explains why it used /target/build.properties. Only when this file doesn't exist it will lookup the property file relative to the workspace.



























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.


[JIRA] [envinject] (JENKINS-23666) Inject environment variables build step uses the wrong property file

2014-07-03 Thread wilco.gre...@ibridge.nl (JIRA)














































Wilco Greven
 updated  JENKINS-23666


Inject environment variables build step uses the wrong property file
















Change By:


Wilco Greven
(03/Jul/14 11:47 AM)




Description:


We have a job that uses an 'inject environment variables' build step to inject environment variables from a property file 'target/build.properties'. This property file was verified to exist in the workspace.
 At first this worked fine.
 
By
Then by
 accident someone created a file /target/build.properties in the root of the file system.
 When this file exists it will be used by
 What happened next is that
 the 'inject environment variables' build step
 would use this new file
 instead of the file in the
 job's
 workspace.



























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.


[JIRA] [envinject] (JENKINS-23666) Inject environment variables build step uses the wrong property file

2014-07-03 Thread wilco.gre...@ibridge.nl (JIRA)














































Wilco Greven
 updated  JENKINS-23666


Inject environment variables build step uses the wrong property file
















Change By:


Wilco Greven
(03/Jul/14 11:06 AM)




Environment:


{noformat}Naam  ↓Waarde   awt.toolkit	sun.awt.X11.XToolkitcatalina.base	/opt/tomcat6catalina.home	/opt/tomcat6catalina.useNaming	truecom.sun.management.jmxremote	com.sun.management.jmxremote.authenticate	falsecom.sun.management.jmxremote.port	9003com.sun.management.jmxremote.ssl	falsecommon.loader	${catalina.base}/lib
linux
,
${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jarfile.encoding	UTF-8file.encoding.pkg	sun.iofile.separator	/guice.disable.misplaced.annotation.check	truehttp.nonProxyHosts	*.rsghttp.proxyHost	ibraccsqd01.nl.rsghttp.proxyPort	8080hudson.slaves.WorkspaceList	_java.awt.graphicsenv	sun.awt.X11GraphicsEnvironmentjava.awt.headless	truejava.awt.printerjob	sun.print.PSPrinterJobjava.class.path	/opt/tomcat6/bin/bootstrap.jarjava.class.version	51.0java.endorsed.dirs	/opt/tomcat6/endorsedjava.ext.dirs	/usr/java/jdk1.7.0_51/jre/lib/ext:/usr/java/packages/lib/extjava.home	/usr/java/jdk1.7.0_51/jrejava.io.tmpdir	/opt/tomcat6/tempjava.library.path	/usr/lib/oracle/11.2/client/lib:/usr/java/packages/lib/i386:/lib:/usr/libjava.naming.factory.initial	org.apache.naming.java.javaURLContextFactoryjava.naming.factory.url.pkgs	org.apache.namingjava.rmi.server.hostname	java.rmi.server.randomIDs	truejava.runtime.name	Java(TM) SE Runtime Environmentjava.runtime.version
 jdk
	1.7.0_51
-b13java.security.egd	file:///dev/urandomjava.specification.name	Java Platform API Specificationjava.specification.vendor	Oracle Corporationjava.specification.version	1.7java.util.logging.config.file	/opt/tomcat6/conf/logging.propertiesjava.util.logging.manager	org.apache.juli.ClassLoaderLogManagerjava.vendor	Oracle Corporationjava.vendor.url	http://java.oracle.com/java.vendor.url.bug	http://bugreport.sun.com/bugreport/java.version	1.7.0_51java.vm.info	mixed modejava.vm.name	Java HotSpot(TM) Server VMjava.vm.specification.name	Java Virtual Machine Specificationjava.vm.specification.vendor	Oracle Corporationjava.vm.specification.version	1.7java.vm.vendor	Oracle Corporationjava.vm.version	24.51-b03jna.platform.library.path	/usr/lib:/libline.separator	mail.smtp.sendpartial	truemail.smtps.sendpartial	trueos.arch	i386os.name	Linuxos.version	2.6.18-308.el5PAEpackage.access	sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.package.definition	sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.path.separator	:securerandom.source	file:/dev/./urandomserver.loader	shared.loader	sun.arch.data.model	32sun.boot.class.path	/usr/java/jdk1.7.0_51/jre/lib/resources.jar:/usr/java/jdk1.7.0_51/jre/lib/rt.jar:/usr/java/jdk1.7.0_51/jre/lib/sunrsasign.jar:/usr/java/jdk1.7.0_51/jre/lib/jsse.jar:/usr/java/jdk1.7.0_51/jre/lib/jce.jar:/usr/java/jdk1.7.0_51/jre/lib/charsets.jar:/usr/java/jdk1.7.0_51/jre/lib/jfr.jar:/usr/java/jdk1.7.0_51/jre/classessun.boot.library.path	/usr/java/jdk1.7.0_51/jre/lib/i386sun.cpu.endian	littlesun.cpu.isalist	sun.font.fontmanager	sun.awt.X11FontManagersun.io.unicode.encoding	UnicodeLittlesun.java.command	org.apache.catalina.startup.Bootstrap startsun.java.launcher	SUN_STANDARDsun.jnu.encoding	UTF-8sun.management.compiler	HotSpot Tiered Compilerssun.os.patch.level	unknownsvnkit.http.methods	Digest,Basic,NTLM,Negotiatesvnkit.ssh2.persistent	falsetomcat.util.buf.StringCache.byte.enabled	trueuser.country	USuser.dir	/user.home	/rootuser.language	enuser.name	rootuser.timezone	Europe/AmsterdamOmgevingsvariabelenNaam  ↓Waarde   _	/opt/jdk/bin/javaJENKINS_HOME	/data/
jenkins
-workLANG	en_US.UTF-8LD_LIBRARY_PATH	/usr/lib/oracle/11.2/client/libNLSPATH	/usr/dt/lib/nls/msg/%L/%N.catPATH	/sbin:/usr/sbin:/bin:/usr/binPWD	/SHLVL	2TERM	xtermTNS_ADMIN	/usr/lib/oracle/11.2/client/network/adminXFILESEARCHPATH	/usr/dt/app-defaults/%L/DtInvoegtoepassingenNaam  ↓Versie   Ingeschakeld   Pinned   active-directory
	1.
37	true	falseanalysis-core	1
554
.
56	true	falseant
	1
.2	true	trueantisamy-markup-formatter	1.1	true	trueartifact-promotion	0.2.6	true	falseasync-http-client	1.7.8	true	falseawseb-deployment-plugin	0.0.3	true	falsebuild-flow-plugin	0.12	true	fal

[JIRA] [envinject] (JENKINS-23666) Inject environment variables build step uses the wrong property file

2014-07-03 Thread wilco.gre...@ibridge.nl (JIRA)














































Wilco Greven
 updated  JENKINS-23666


Inject environment variables build step uses the wrong property file
















Change By:


Wilco Greven
(03/Jul/14 10:53 AM)




Environment:


{noformat}Naam  ↓Waarde   awt.toolkit	sun.awt.X11.XToolkitcatalina.base	/opt/tomcat6catalina.home	/opt/tomcat6catalina.useNaming	truecom.sun.management.jmxremote	com.sun.management.jmxremote.authenticate	falsecom.sun.management.jmxremote.port	9003com.sun.management.jmxremote.ssl	falsecommon.loader	${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jarfile.encoding	UTF-8file.encoding.pkg	sun.iofile.separator	/guice.disable.misplaced.annotation.check	truehttp.nonProxyHosts	*.rsghttp.proxyHost	ibraccsqd01.nl.rsghttp.proxyPort	8080hudson.slaves.WorkspaceList	_java.awt.graphicsenv	sun.awt.X11GraphicsEnvironmentjava.awt.headless	truejava.awt.printerjob	sun.print.PSPrinterJobjava.class.path	/opt/tomcat6/bin/bootstrap.jarjava.class.version	51.0java.endorsed.dirs	/opt/tomcat6/endorsedjava.ext.dirs	/usr/java/jdk1.7.0_51/jre/lib/ext:/usr/java/packages/lib/extjava.home	/usr/java/jdk1.7.0_51/jrejava.io.tmpdir	/opt/tomcat6/tempjava.library.path	/usr/lib/oracle/11.2/client/lib:/usr/java/packages/lib/i386:/lib:/usr/libjava.naming.factory.initial	org.apache.naming.java.javaURLContextFactoryjava.naming.factory.url.pkgs	org.apache.namingjava.rmi.server.hostname	java.rmi.server.randomIDs	truejava.runtime.name	Java(TM) SE Runtime Environmentjava.runtime.version	1.7.0_51-b13java.security.egd	file:///dev/urandomjava.specification.name	Java Platform API Specificationjava.specification.vendor	Oracle Corporationjava.specification.version	1.7java.util.logging.config.file	/opt/tomcat6/conf/logging.propertiesjava.util.logging.manager	org.apache.juli.ClassLoaderLogManagerjava.vendor	Oracle Corporationjava.vendor.url	http://java.oracle.com/java.vendor.url.bug	http://bugreport.sun.com/bugreport/java.version	1.7.0_51java.vm.info	mixed modejava.vm.name	Java HotSpot(TM) Server VMjava.vm.specification.name	Java Virtual Machine Specificationjava.vm.specification.vendor	Oracle Corporationjava.vm.specification.version	1.7java.vm.vendor	Oracle Corporationjava.vm.version	24.51-b03jna.platform.library.path	/usr/lib:/libline.separator	mail.smtp.sendpartial	truemail.smtps.sendpartial	trueos.arch	i386os.name	Linuxos.version	2.6.18-308.el5PAEpackage.access	sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.package.definition	sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.path.separator	:securerandom.source	file:/dev/./urandomserver.loader	shared.loader	sun.arch.data.model	32sun.boot.class.path	/usr/java/jdk1.7.0_51/jre/lib/resources.jar:/usr/java/jdk1.7.0_51/jre/lib/rt.jar:/usr/java/jdk1.7.0_51/jre/lib/sunrsasign.jar:/usr/java/jdk1.7.0_51/jre/lib/jsse.jar:/usr/java/jdk1.7.0_51/jre/lib/jce.jar:/usr/java/jdk1.7.0_51/jre/lib/charsets.jar:/usr/java/jdk1.7.0_51/jre/lib/jfr.jar:/usr/java/jdk1.7.0_51/jre/classessun.boot.library.path	/usr/java/jdk1.7.0_51/jre/lib/i386sun.cpu.endian	littlesun.cpu.isalist	sun.font.fontmanager	sun.awt.X11FontManagersun.io.unicode.encoding	UnicodeLittlesun.java.command	org.apache.catalina.startup.Bootstrap startsun.java.launcher	SUN_STANDARDsun.jnu.encoding	UTF-8sun.management.compiler	HotSpot Tiered Compilerssun.os.patch.level	unknownsvnkit.http.methods	Digest,Basic,NTLM,Negotiatesvnkit.ssh2.persistent	falsetomcat.util.buf.StringCache.byte.enabled	trueuser.country	USuser.dir	/user.home	/rootuser.language	enuser.name	rootuser.timezone	Europe/AmsterdamOmgevingsvariabelenNaam  ↓Waarde   _	/opt/jdk/bin/javaJENKINS_HOME	/data/jenkins-workLANG	en_US.UTF-8LD_LIBRARY_PATH	/usr/lib/oracle/11.2/client/libNLSPATH	/usr/dt/lib/nls/msg/%L/%N.catPATH	/sbin:/usr/sbin:/bin:/usr/binPWD	/SHLVL	2TERM	xtermTNS_ADMIN	/usr/lib/oracle/11.2/client/network/adminXFILESEARCHPATH	/usr/dt/app-defaults/%L/DtInvoegtoepassingenNaam  ↓Versie   Ingeschakeld   Pinned   active-directory	1.37	true	falseanalysis-core	1.56	true	falseant	1.2	true	trueantisamy-markup-formatter	1.1	true	trueartifact-promotion	0.2.6	true	falseasync-http-client	1.7.8	true	falseawseb-deployment-plugin	0.0.3	true	falsebuild-flow-plugin	0.12	true	falsebuild-name-setter	1.3	tru

[JIRA] [envinject] (JENKINS-23666) Inject environment variables build step uses the wrong property file

2014-07-03 Thread wilco.gre...@ibridge.nl (JIRA)














































Wilco Greven
 created  JENKINS-23666


Inject environment variables build step uses the wrong property file















Issue Type:


Bug



Affects Versions:


current



Assignee:


Gregory Boissinot



Components:


envinject



Created:


03/Jul/14 10:51 AM



Project:


Jenkins



Priority:


Major



Reporter:


Wilco Greven

























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.