Re: Pass env variables to junit test from jenkins

2012-11-26 Thread Serega Sheypak
I did it here: Project configuration -> Maven -> Build -> Goals and options (input field), the I've added -DargLine="-Dmyprop=myvalue... etc..." Thanks, problem is solved. 2012/11/26 Clemens > Hey, > > have you tried to split it, like this: > > variable=value > export variable > > So, you are n

Re: Pass env variables to junit test from jenkins

2012-11-26 Thread Clemens
Hey, have you tried to split it, like this: variable=value export variable So, you are not assigning your variable in your export line. But, not sure about it. Greetings

Re: Pass env variables to junit test from jenkins

2012-11-23 Thread Serega Sheypak
I've tried different options: 1. jenkins->my project-> configuration ->Pre Steps->execute shell: *export myvar=val1* *export **myvar=val2* *e.t.c.* * * *And I got failed build:* Warning : There are multiple branch changesets here [mr-url-rating] $ /bin/sh -xe /tmp/hudson7013605956859189867.sh + ex

Re: Pass env variables to junit test from jenkins

2012-11-23 Thread Harpreet singh Wadhwa
Are you not using Maven Plugin (Maven type Job)? As that has a textbox for arguments. If you are using the maven job and still getting issue, then would need more info on how are you trying to pass these argument, as it should be simple enough, even if you run it from Bash shell / as Bach command

Pass env variables to junit test from jenkins

2012-11-23 Thread Serega Sheypak
Hi, I have pretty silly question. Please help me. I do have a test which gets parameters from env variables: public Conf(){ this.hostname = System.getProperty(WEBAPP_HOST); this.port = System.getProperty(WEBAPP_PORT); this.contextPath = System.getProperty(WEBAPP_CONTEXTPA