Jenkins Remote Build

2020-04-21 Thread David Foley
Hi All Not sure if someone here could Help me with this one... Currently I have a Remote Build within my Flask Web Application.. That Triggers the Job: I would like to display the results as a Flash Message within my Webpage. Is it possible to display the Results of the Job ( Failed or

Re: Remote build with token parameter crashing

2015-09-17 Thread Christopher Orr
015 at 1:30:03 PM UTC-4, John Marks wrote: > > I'm using the following linux command line to do a remote build > using Jenkins version 1.613 > > curl -X POST > > http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build &g

Re: Remote build with token parameter crashing

2015-09-16 Thread John Marks
don't get a warning in the Jenkins console anymore.) Something else is wrong. Should I try running with a different container or installing the latest version? On Tuesday, September 15, 2015 at 1:30:03 PM UTC-4, John Marks wrote: > > I'm using the following linux command line to do

Re: Remote build with token parameter crashing

2015-09-16 Thread zhu kane
AM, John Marks wrote: > I'm using the following linux command line to do a remote build using > Jenkins version 1.613 > > curl -X POST > http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build > --data token=gmasbuild > > What I get lo

Remote build with token parameter crashing

2015-09-15 Thread John Marks
I'm using the following linux command line to do a remote build using Jenkins version 1.613 curl -X POST http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build --data token=gmasbuild What I get looks like a long HTML response that's expectin

Re: Remote Build Using Curl

2015-08-21 Thread Richard Bywater
Or given that assuming you really want to use curl, presumably you could reference the code base of those projects to try and see how to do it :) Richard. On Sat, 22 Aug 2015 6:33 am Khai Do wrote: > If you don't mind using Python, both the python-jenkins and jenkinsapi > packages can do this f

Re: Remote Build Using Curl

2015-08-21 Thread Khai Do
If you don't mind using Python, both the python-jenkins and jenkinsapi packages can do this for you pretty easily. Both are wrappers around the Jenkins REST api so basically exactly what you are trying to do with curl. On Thursday, August 20, 2015 at 9:28:57 AM UTC-7, Greg Nifor wrote: > > Cau

Re: Remote Build Using Curl

2015-08-20 Thread Greg Nifor
Update: Still doesn't work json='{"parameter": [{"name": "text", "value": "AA"}, {"name": "file", "value": "file0"}]}' url= curl $url -F file0=@ -F json="$json" -u : On Monday, August 17, 2015 at 2:42:58 PM UTC-7, Daniel Beck wrote: > > How to trigger a build with parameters is explained on the

Re: Remote Build Using Curl

2015-08-20 Thread Greg Nifor
Caused by: java.lang.NullPointerException at hudson.model.FileParameterValue.(FileParameterValue.java:78) On Thursday, August 20, 2015 at 9:23:53 AM UTC-7, Greg Nifor wrote: > > Update: Still doesn't work > > json='{"parameter": [{"name": "text", "value": "AA"}, {"name": "file", > "val

Re: Remote Build Using Curl

2015-08-17 Thread Daniel Beck
How to trigger a build with parameters is explained on the /job/JOBNAME/api URL in Jenkins -- the wiki page on the topic is a bit weird. On 17.08.2015, at 22:39, Walter Kelt wrote: > Just looked at the Jenkins remote access api. Looks like file and parameters > need to be passed into curl in a

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
Will do, thank you! On Monday, August 17, 2015 at 1:39:26 PM UTC-7, walter.kelt wrote: > > Just looked at the Jenkins remote access api. Looks like file and > parameters need to be passed into curl in a json format. Not sure what > Jenkins version you are using, but you may want to check it out.

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
Just looked at the Jenkins remote access api. Looks like file and parameters need to be passed into curl in a json format. Not sure what Jenkins version you are using, but you may want to check it out. If you are doing a parametrized build it looks to be a little more complicated and I don't s

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
The job I'm triggering has two parameters, git and root. The curl sets those and I'm able to use those in my execute shell step. On Monday, August 17, 2015 at 12:57:38 PM UTC-7, walter.kelt wrote: > > Hmmm..when issuing a multipart form submission, i wouldn't expect the > multipart parameters t

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
Hmmm..when issuing a multipart form submission, i wouldn't expect the multipart parameters to become Linux shell variables unless the code receiving the http request took the parameters and made them so. Does your http endpoint do so ? Seems I am missing something. Sent from my iPad > On Aug

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
Linux, there's no errors. The command goes through, but Jenkins doesn't pick up on the variables when I echo them out this is the output: *12:31:06* + echo *12:31:06* *12:31:06* + echo root*12:31:06* root Top one echos git and the second one echoes root (it's default value is root) echo $git

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
What was the error message ? paste the most current command. Also, windows or Linux ? Sent from my iPad > On Aug 17, 2015, at 3:27 PM, Greg Nifor wrote: > > That didn't work. > >> On Monday, August 17, 2015 at 12:19:24 PM UTC-7, walter.kelt wrote: >> I think you need quote signs around each

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
No dice. On Monday, August 17, 2015 at 12:28:20 PM UTC-7, walter.kelt wrote: > > Also, the url is usually after all the switches. Not sure how strictly the > format is checked. > > Sent from my iPad > > On Aug 17, 2015, at 3:19 PM, Walter Kelt > > wrote: > > I think you need quote signs around

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
That didn't work. On Monday, August 17, 2015 at 12:19:24 PM UTC-7, walter.kelt wrote: > > I think you need quote signs around each of the -F itemssuch as -F > "git=test" > > Sent from my iPad > > On Aug 17, 2015, at 3:15 PM, Greg Nifor > wrote: > > curl -X POST localhost/job/Test/buildWithP

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
Also, the url is usually after all the switches. Not sure how strictly the format is checked. Sent from my iPad > On Aug 17, 2015, at 3:19 PM, Walter Kelt wrote: > > I think you need quote signs around each of the -F itemssuch as -F > "git=test" > > Sent from my iPad > >> On Aug 17, 20

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
I think you need quote signs around each of the -F itemssuch as -F "git=test" Sent from my iPad > On Aug 17, 2015, at 3:15 PM, Greg Nifor wrote: > > curl -X POST localhost/job/Test/buildWithParameters -u user:pass -F git=test > -F root=root1 > > > > >> On Monday, August 17, 2015 at 1

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
curl -X POST localhost/job/Test/buildWithParameters -u user:pass -F git=test -F root=root1 On Monday, August 17, 2015 at 12:11:08 PM UTC-7, walter.kelt wrote: > > Please paste your full curl command > > Sent from my iPad > > On Aug 17, 2015, at 3:06 PM, Greg Nifor > wrote: > > When I try that

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
Please paste your full curl command Sent from my iPad > On Aug 17, 2015, at 3:06 PM, Greg Nifor wrote: > > When I try that the variables are empty. > >> On Monday, August 17, 2015 at 11:49:09 AM UTC-7, walter.kelt wrote: >> You need to use -F for file and -F for data. >> >> Sent from my iPad

Re: Remote Build Using Curl

2015-08-17 Thread Greg Nifor
When I try that the variables are empty. On Monday, August 17, 2015 at 11:49:09 AM UTC-7, walter.kelt wrote: > > You need to use -F for file and -F for data. > > Sent from my iPad > > On Aug 17, 2015, at 2:41 PM, Greg Nifor > wrote: > > Is there a way to use curl to send both a file and string pa

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
You need to use -F for file and -F for data. Sent from my iPad > On Aug 17, 2015, at 2:41 PM, Greg Nifor wrote: > > Is there a way to use curl to send both a file and string parameter. I can do > each individually, but not together. > > Works: > > curl -X POST /job//buildWithParameters -u :

Re: Remote Build Using Curl

2015-08-17 Thread Walter Kelt
You need to use the curl -F switch to make it a multipart http submission. This will allow a file and parameter to be included with a single http post submission. Plenty of online examples available. Sent from my iPad > On Aug 17, 2015, at 2:41 PM, Greg Nifor wrote: > > Is there a way to use

Remote Build Using Curl

2015-08-17 Thread Greg Nifor
Is there a way to use curl to send both a file and string parameter. I can do each individually, but not together. Works: curl -X POST /job//buildWithParameters -u : -F file=@/path/to curl -X POST /job//buildWithParameters -u : --data string0=foo --data string1=bar Doesn't Work: curl -X POS

Re: Help Needed: Unable to get Remote Build Trigger working

2015-04-29 Thread Matt Stave
You need to curl -X POST On Thursday, March 19, 2015 at 11:06:34 AM UTC-7, Vinoth raj wrote: > > I need to use curl to remotely trigger build for a project. > > Jenkins ver. 1.580.3 > Following setting is done: > In Configure Global Security section: > - Jenkins' own user database set is enabled

Help Needed: Unable to get Remote Build Trigger working

2015-03-19 Thread Vinoth raj
I need to use curl to remotely trigger build for a project. Jenkins ver. 1.580.3 Following setting is done: In Configure Global Security section: - Jenkins' own user database set is enabled - Project based matrix authorization strategy is enabled There is one user who has all rights enabled here.

Re: Remote Build Wall Display

2014-08-14 Thread Les Mikesell
On Thu, Aug 14, 2014 at 5:03 AM, GS wrote: > > I'm trying to setup a build wall display for the office and have been > evaluating the Wall Display and Build Monitor plugins. My use case is that I > have a TV monitor (not connected to the Jenkins server) which runs a web > browser pointing to my ch

Re: Remote Build Wall Display

2014-08-14 Thread Aldrin Leal
That would be a Chromecast Killer App :) -- -- Aldrin Leal, Master your EC2-fu! Get the latest ekaterminal public beta http://www.ingenieux.com.br/products/ekaterminal/ On Thu, Aug 14, 2014 at 1:25 PM, Eric Smalling wrote: > A while back, due to some special project chaining, we wrote our own

Re: Remote Build Wall Display

2014-08-14 Thread Eric Smalling
A while back, due to some special project chaining, we wrote our own Django based radiator - not the most elegant code but it does provide a server that hosts the display, it uses the JSON API's to gather the build info and then renders the page. It would probably be trivial to make it authent

Re: Remote Build Wall Display

2014-08-14 Thread Thomas Sundberg
On 14 August 2014 12:03, GS wrote: > Hi, > > I'm trying to setup a build wall display for the office and have been > evaluating the Wall Display and Build Monitor plugins. My use case is that I > have a TV monitor (not connected to the Jenkins server) which runs a web > browser pointing to my choi

Remote Build Wall Display

2014-08-14 Thread GS
Hi, I'm trying to setup a build wall display for the office and have been evaluating the Wall Display and Build Monitor plugins. My use case is that I have a TV monitor (not connected to the Jenkins server) which runs a web browser pointing to my choice of URLs. The thing is, my Jenkins server

Remote build trigger with curl - quick question

2013-01-09 Thread zw
Hi All Could someone share a simple example on how one could use curl command and passing in the SVN_REVISION parameter value to the remote job so that the SCM could use it as part of its repository URL and kick off the build ? Thanks

remote build

2012-10-12 Thread Suri
Hi I have set parameter in my Jenkins. In earlier my Jenkins job was triggered using remote token that time i have not set any parameter in my job. After i set parameter, how to trigger my Jenkins job using remote build token? Please anyone suggest me?

Re: Hudson remote build job kick off

2012-07-02 Thread zw
gt; > > > --Rob > > > > *From:* jenkinsci-users@googlegroups.com [mailto: > jenkinsci-users@googlegroups.com] *On Behalf Of *zw > *Sent:* Monday, July 02, 2012 2:07 PM > *To:* jenkinsci-users@googlegroups.com > *Subject:* Hudson remote build job kick off > > &g

Re: Hudson remote build job kick off

2012-07-02 Thread Z W
tput to the server), so the TestNG > plugin should work on your server on A even if you’re building on B. > > > > --Rob > > > > From: jenkinsci-users@googlegroups.com > [mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw > Sent: Monday, July 02, 2012 2:0

RE: Hudson remote build job kick off

2012-07-02 Thread Mandeville, Rob
: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw Sent: Monday, July 02, 2012 2:07 PM To: jenkinsci-users@googlegroups.com Subject: Hudson remote build job kick off Hi All I have host A running the Hudson server. I have another host B with its Ant

RE: Hudson remote build job kick off

2012-07-02 Thread Alex Earl
You'd probably want to use host B as a slave and tie the job to that slave. You can check the wiki for information on the master/slave setup. Sent from my Windows Phone -- From: zw Sent: 7/2/2012 12:07 PM To: jenkinsci-users@googlegroups.com Subject: Hudson r

Hudson remote build job kick off

2012-07-02 Thread zw
Hi All I have host A running the Hudson server. I have another host B with its Ant build.xml there in host B. How do I configure Hudson on host A to kick off the build.xml in host B. If this is not possible, what are the workarounds, possible solutions to this problem. If this is possible, how do