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 (from Jenkins job) Thanks On Fri, Nov 23, 2012 at 11:09 AM, Serega Sheypak <serega.shey...@gmail.com>wrote: > 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_CONTEXTPATH); > this.scoringServletname = > System.getProperty(WEBAPP_SCORING_SERVLETNAME); > > } > I do pass these variables in this way: > mvn test -DargLine="-Dwebapp.port=12345 > -Dwebapp.host=xxx.yyy.net-Dwebapp.contextpath=my-webapp > -Dwebapp.my.servletname=myServlet" > > How can I do the same using jenkins? > I've tried a lot of stuff, but nothing helps. Conf ogject gets null values > during instantiation. > -- http://wharpreet.blogspot.com http://linuxgazettes.blogspot.com http://in.linkedin.com/in/wharpreet