Re: Build Parameters in Plugin not working

2018-01-24 Thread Jean-Karlo Accetta
Hi Jesse, I had tried run.getEnvironment(listener) as well but hadn't tried the .overrideAll(((AbstractBuild)(run)).getBuildVariables()).expand(this.whatever). Thanks a lot, that did it! On Wednesday, January 24, 2018 at 12:57:32 PM UTC-5, Jesse Glick wrote: > > On Wed, Jan 24, 2018 at 12:10 PM

Re: Build Parameters in Plugin not working

2018-01-24 Thread Jesse Glick
On Wed, Jan 24, 2018 at 12:10 PM, Jean-Karlo Accetta wrote: > I tried using System.getProperty() but that didn't really work either Certainly not—that would be a system property global to the master JVM! Try: http://javadoc.jenkins.io/hudson/model/Run.html#getEnvironment-hudson.model.TaskListen

Build Parameters in Plugin not working

2018-01-24 Thread Jean-Karlo Accetta
Hi all, I created a plugin which adds a build step with a simple textbox to any job. Whenever the job is built, I print out the value of that textbox to the console. The problem is that whenever I set that value to be a parameter of the build (see image), the console simply prints the paramet