Discussion:
Trigger remote job fails - quick question
zw
2013-01-10 00:36:37 UTC
Permalink
Hi All


We have 2 jenkins servers in boxes A, and B. Box A has box C as its slave.

We tried triggering 1 job in box A by using wget http://www.arefshg.com:8080/hudson/job/1.0_Build/build in the Build Execute Shell section.


Console output


Building remotely on slave_linux
[test_svn14] $ /bin/sh -xe /tmp/hudson4435957536083197879.sh
+ wget http://www.arefshg.com:8080/hudson/job/1.0_Build/build
--2013-01-10 00:27:46-- http://www.arefshg.com:8080/hudson/job/1.0_Build/build
Resolving proxy.arefshg.com... 123.45.234.55

Connecting to proxy.arefshg.com|123.45.234.55|:80... connected.
Proxy request sent, awaiting response... 405 Method Not Allowed
2013-01-10 00:27:46 ERROR 405: Method Not Allowed.


What did we do wrong ?

What other methods can we use to trigger a remote build and passes back its build artifacts from B to A ?


Thanks
Stuart Whelan
2013-01-10 00:42:25 UTC
Permalink
Is the job you are trying to trigger configured to use parameters?

Do you have login security turned on any of the jenkins machines?

I trigger a build on our DR jenkins box using this method on my window
jenkins server:

c:\unix\usr\local\wbin\wget
"http://DRMACHINE:8080/job/DR%%20-%%20Kickoff%%20Db%%20Restore/build?token=MYSECRETTOKEN&cause=Started+By+DR+Process"
Post by zw
Hi All
We have 2 jenkins servers in boxes A, and B. Box A has box C as its slave.
We tried triggering 1 job in box A by using wget
http://www.arefshg.com:8080/hudson/job/1.0_Build/build in the Build Execute
Shell section.
Console output
Building remotely on slave_linux
[test_svn14] $ /bin/sh -xe /tmp/hudson4435957536083197879.sh
+ wget http://www.arefshg.com:8080/hudson/job/1.0_Build/build
--2013-01-10 00:27:46--
http://www.arefshg.com:8080/hudson/job/1.0_Build/build
Resolving proxy.arefshg.com... 123.45.234.55
Connecting to proxy.arefshg.com|123.45.234.55|:80... connected.
Proxy request sent, awaiting response... 405 Method Not Allowed
2013-01-10 00:27:46 ERROR 405: Method Not Allowed.
What did we do wrong ?
What other methods can we use to trigger a remote build and passes back its
build artifacts from B to A ?
Thanks
zw
2013-01-10 06:00:45 UTC
Permalink
Hi Stuart

Thanks for responding.
The remote Jenkins does not have security ie no username password to deal
with; simply a job configured there.

Do you know how one could pass revision number with a curl command to kick
off the remote build ?
Post by Stuart Whelan
Is the job you are trying to trigger configured to use parameters?
Do you have login security turned on any of the jenkins machines?
I trigger a build on our DR jenkins box using this method on my window
c:\unix\usr\local\wbin\wget
"
http://DRMACHINE:8080/job/DR%%20-%%20Kickoff%%20Db%%20Restore/build?token=MYSECRETTOKEN&cause=Started+By+DR+Process"
Post by zw
Hi All
We have 2 jenkins servers in boxes A, and B. Box A has box C as its
slave.
Post by zw
We tried triggering 1 job in box A by using wget
http://www.arefshg.com:8080/hudson/job/1.0_Build/build in the Build
Execute
Post by zw
Shell section.
Console output
Building remotely on slave_linux
[test_svn14] $ /bin/sh -xe /tmp/hudson4435957536083197879.sh
+ wget http://www.arefshg.com:8080/hudson/job/1.0_Build/build
--2013-01-10 00:27:46--
http://www.arefshg.com:8080/hudson/job/1.0_Build/build
Resolving proxy.arefshg.com... 123.45.234.55
Connecting to proxy.arefshg.com|123.45.234.55|:80... connected.
Proxy request sent, awaiting response... 405 Method Not Allowed
2013-01-10 00:27:46 ERROR 405: Method Not Allowed.
What did we do wrong ?
What other methods can we use to trigger a remote build and passes back
its
Post by zw
build artifacts from B to A ?
Thanks
KunLung Hsieh
2018-10-23 07:15:39 UTC
Permalink
Mark Hudson's answer works for me!

Mark Hudsonæ–Œ 2016幎2月23日星期二 UTC+8䞊午9時10分01秒寫道
I found that sometimes a workaround to ERROR 405: Method Not Allowed...
...is to change the final part of the URL path from .../build to
.../buildWithParameters
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ef2d59ad-7852-4568-b2dd-c3e7c727b6d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...