Re: How do I retrieve the exit code of a 'bat' command?

2016-04-14 Thread Scott Richmond
he ERRORLEVEL variable > to do some basic if blocks. See > http://stackoverflow.com/questions/4451013/check-if-process-returns-0-with-batch-file > for > a basic example and also I think it has a link to more info. > > Richard. > > On Fri, 15 Apr 2016 at 09:40 Scott Richmond &g

Re: How do I retrieve the exit code of a 'bat' command?

2016-04-14 Thread Scott Richmond
eone may have a more elegant answer but one way that comes to mind is > to call another cmd/bat file from Jenkins which then calls the external > tools and also has logic to interpret the exit codes coming back from the > those tools and acting appropriately. > > Richard. > >

How do I retrieve the exit code of a 'bat' command?

2016-04-14 Thread Scott Richmond
I need to run a few external build tools and I do so with the bat command on Windows agents. I need to be able to determine the success or failure of that command based on the exit code of the script that was run. Is it possible to get this? -- You received this message because you are subscri

How can I react to a build failure in pipeline?

2016-04-12 Thread Scott Richmond
I need to be able to do a HTTP POST when the Jenkins Pipeline job finishes in failure due to some issue in the process of doing its tasks. Basically I need to surround the pipeline in a giant try-catch{}. Does pipeline provide functionality to perform final tasks in the event of a failure? --

Customising the Jenkins slave launcher

2016-02-29 Thread Scott Richmond
I'm developing a bit of a custom front-end for Jenkins as a sort of custom service for our company. I'd like to modify the Jenkins launcher with our logo, etc. I come from the C# world and know only a little about the Java ecosystem, and I couldn't find any documentation at all on the Jenkins l

RE: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-02-01 Thread Scott Richmond
How does one install httpbuilder a part of the Jenkins client? I’ve found very little instruction on this. Sent from Outlook Mail <http://go.microsoft.com/fwlink/?LinkId=550987> for Windows 10 phone *From: *Craig Rodrigues *Sent: *Monday, 1 February 2016 10:49 PM *To: *Scott Richmo

RE: How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-01-31 Thread Scott Richmond
rp+rest+api -- Craig On Sun, Jan 31, 2016 at 9:20 AM, Scott Richmond wrote: > I require the ability to HTTP POST data to a remote service via some kind > of REST client. This will be done on Windows agents, so the native curl > support in sh is not suitable. Is there any way to do this in

Creating/Deleting/Modifying Nodes via API

2016-01-31 Thread Scott Richmond
Hi, I require the ability to create/edit/delete Jenkins nodes via the Web API. I can see there is some CLI tool for it, but I need to do it in C# and would very much not need to spawn and manage some external cli tool. Is there no RESTful way to do it? -- You received this message because you a

How can I POST data to a remote service in Jenkins pipeline/workflow?

2016-01-31 Thread Scott Richmond
I require the ability to HTTP POST data to a remote service via some kind of REST client. This will be done on Windows agents, so the native curl support in sh is not suitable. Is there any way to do this in the groovy script? -- You received this message because you are subscribed to the Goog

Jenkins pipeline - Can Workflow jobs be parameterized?

2016-01-16 Thread Scott Richmond
I have created a simple Workflow job and want to be able to trigger it via URL with some parameters. However using the Parameterized job plugin doesn't appear to work. I filed a bug last week on it and it is currently blocking further developm