Why not capture your Java command line parameters using a Jenkins freestyle build and a form for the required parameters? These parameters are available in the build and can be passed to your java program.
On Monday, February 13, 2017 at 3:02:14 AM UTC-5, Akiva Lane wrote: > > We have written a Java program that accepts command line input. > I can start the program withe Jenkins, and then the program expects a > command with parameters > to be entered. But when I put the command on the next Jenkins line, > Jenkins says 'command not found'. > > For example, I run a script called startPgm that starts my program, and > then need to enter the command > to the program "file javatest". > > My Jenkins lines are: > + cd /users/akiva > + ./startPgm > + file javatest > > Jenkins starts the program, and then says: > > Command> + file javatest > /tmp/hudson7645987865sh line 3: file: command not found > > How do I enter the command into the program? > Thanks. > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/04ad8492-b939-448c-89e7-2b3d9d5983f5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
