Easiest way to control local machine?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Easiest way to control local machine?

Fred Niemelä-2
I'm a newbie to Jenkins and would appreciate some hints to get me started.

Basically what I want to do is:

Start a job from Jenkins that:
1. Runs a command (e.g. batch-file) on my local machine "programX.exe -flag <input arguments>
2. That program will output a few csv files
3. Upload these csv files to the Jenkins server
4. Email the results

What would be the easiest way to do this?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7f3fa1e8-86b3-41b3-b178-4aa5e128fddf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Easiest way to control local machine?

Long Tran
1. Runs a command (e.g. batch-file) on my local machine "programX.exe -flag <input arguments>

Restrict this job to run only on your local machine. Add any string parameter you want, then in batch command just call them "programX.exe -flag %PARAM%
 
2. That program will output a few csv files
3. Upload these csv files to the Jenkins server 

What do you mean by "upload" ? I guess you want to copy them from your machine to Jenkins master ? There's an option to copy file from slave to master job's workspace or you can you Archive artifact plugin from your machine then copy on master
 
4. Email the results

At Post build step, add Editable Email Notification step, config to send email as Always, you can add the link of csv file in email content with syntax ${FILE, path="path/to/csv/files"}

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/185a1376-8716-4859-97d6-83df7a4108ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.