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

2016-01-31 Thread Scott Richmond
The httpbuilder library doesn’t appear to work as it’s not available. Do I have to add it to the default libraries or something? Sent from Outlook Mail for Windows 10 phone *From: *Craig Rodrigues *Sent: *Sunday, 31 January 2016 10:08 PM

Re: fetch the api key for the current user?

2016-01-31 Thread Daniel Beck
On 30.01.2016, at 19:10, Brian J. Murrell wrote: > I am looking for a REST API handle to get the API key of the user that > ran a job. I think any answer to this would likely be a security issue and should be reported as such, rather than posted here. Thank you. --

Re: How do I configure a Jenkins build to push a file to a specific server on the network?

2016-01-31 Thread Victor Martinez
You can use the below plugins: - https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin - https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin Then you can configure your job to run certain scripts among different machines. I hope it helps On Saturday, 30 January 2016 03:48:08

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

2016-01-31 Thread Craig Rodrigues
Hi, curl is one way of calling a REST API from the command-line, but it is not the only way. You can create a Jenkins job, and use many languages to call REST API's inside these jobs, even on Windows. For example, if you want to use groovy, using the HTTPBuilder library is one way to do it:

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

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

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Michael Neale
OK I think I understand. So you can trigger jobA (and things work as expected) but sometimes you want to trigger jobB without jobA, but you still want it to show up in the pipeline view you have? I don't think there is a way to do that at the moment, as the pipeline viewer plugins only look

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Ramnath Ananth
Yes, for example imagine job A to be build job for a project and job B is a job to deploy the artifacts archived from job A to a DEV or a UAT environment. Basically I want to deploy artifacts to an environment using job B through the REST api, in which I am not successful so far. Maybe this is

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Michael Neale
Ramnath, some questions: 1) what type of job - freestyle, workflow/pipeline or something else? 2) when you say "trigger a deploy job remotely" - do you mean create the job? or just trigger it to run ? Normally what people do is check "Build after other projects are built" on JobB config (in

Re: REST api to trigger a job in the build pipeline

2016-01-31 Thread Ramnath Ananth
Hi Michael This is a freestyle job and yes, I am triggering the job to run. I tried your solution to add post build action to trigger job B after job A is triggered through the api and it works. But my use case is to trigger job B not immediately but at any given time. So as of now whenever I

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

2016-01-31 Thread Michael Neale
Do you have access to powershell? http://superuser.com/questions/344927/powershell-equivalent-of-curl looks possibly handy. (calling from pipeline script should be fine, but I can't find an example of how best to do it. Some comment that blocking for an external thing is not ideal.. vs a

Re: git clone error

2016-01-31 Thread GS_L
Somehow the retry doesn't work correctly on one of the jobs. It's look like the retry success but the shell script that runs right after the git clone fails: pushd xap git checkout master popd error log: 09:50:09 Retrying after 10 seconds 09:50:19 > git rev-parse --is-inside-work-tree #

Multistage / single stage and currency question for pipeline/workflow

2016-01-31 Thread David Karlsen
I have these three distinct stages [1] that have concurrency 1 as they should only run one and one - however they are also consumers of each other ( a chain of events). This strongly indicates that it should be a single stage (which would solve my problem) - but at the same time they are

Bitbucket plugin vs plain postCommit hooks?

2016-01-31 Thread David Karlsen
Whats the difference between the bitbucket plugin: https://wiki.jenkins-ci.org/display/JENKINS/BitBucket+Plugin and https://marketplace.atlassian.com/plugins/com.nerdwin15.stash-stash-webhook-jenkins/server/overview + jenkins git plugin? Any whats the purpose of having an explicit