Re: Triggering Jenkins build

298 views
Skip to first unread message
Message has been deleted

Sebastian Sdorra

unread,
Jun 19, 2013, 1:14:41 PM6/19/13
to scmma...@googlegroups.com
Hi,
I'm not sure but error 404 means that the url is not available, are you sure that the url is correct or is the context path missing (http://.../jenkins)? Perhaps you could use the global configuration of the jenkins plugin. The global configuration is much easier: https://bitbucket.org/sdorra/scm-manager/wiki/jenkins-plugin

Sebastian


2013/6/19 Aviva LifeIT <aviva...@gmail.com>
Hi, first thanks for scm manager, this is an awesome tool and has allowed us to setup a git repo on a windows box with ease.

However I am struggling to get the jenkins plugin to trigger a build.

In jenkins I have enabled Trigger Builds remotely and have setup an authentication token... d0240ef0c60a258a59dd037cc40e3e13

I can trigger the build anonymously in a browser using - http://ws066169.via.novonet:8080/job/SomeStuff/build?token=d0240ef0c60a258a59dd037cc40e3e13 but I am unable to trigger from scm when pushing.

I have the following setup in the Jenkins plugin for the repository...

URL : http://ws066169.via.novonet:8080/
Project : SomeStuff
Token : d0240ef0c60a258a59dd037cc40e3e13 (token configured in Jenkins -> Build Triggers -> Trigger builds remotely -> Authentication token
Username : A_DOMAIN_USER
API Token : d0240ef0c60a258a59dd037cc40e3e13

Scm manager is logging...

10:19:22.213 [qtp1729135-21] WARN  sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty
10:19:24.462 [Hook-10] INFO  sonia.scm.jenkins.JenkinsRepositoryHookHandler - call jenkins at http://ws066169.via.novonet:8080/job/SomeStuff/build
10:19:24.618 [Hook-10] ERROR sonia.scm.jenkins.JenkinsRepositoryHookHandler - jenkins returned status code 404

I have tried a combination of the plugin parameters to construct the url : http://ws066169.via.novonet:8080/job/SomeStuff/build?token=d0240ef0c60a258a59dd037cc40e3e13 but cannot get it to work.

What am I doing wrong? Thanks in advance. Graeme


--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Edgar Durão

unread,
Jun 19, 2013, 1:17:17 PM6/19/13
to scmmanager

In ouro company we ser the 404 in the logs too, however the build is trigerred. I guess is because of authentications. Try as Sebastian said the global config.

Edgar Durão

Aviva LifeIT

unread,
Jun 19, 2013, 1:26:43 PM6/19/13
to scmma...@googlegroups.com
Hi, thanks for the speedy replys, i have deleted the first post as after posting I decided that actually I shouldn't probably have posted our pc names! Just in case security see!..or someone bad...

Anyway, I will look into the Jenkins context as I am not sure what that is and give the global config a try.

Thanks for the suggestions.

Graeme


2013/6/19 Aviva LifeIT <aviva...@gmail.com>
Hi, first thanks for scm manager, this is an awesome tool and has allowed us to setup a git repo on a windows box with ease.

However I am struggling to get the jenkins plugin to trigger a build.

In jenkins I have enabled Trigger Builds remotely and have setup an authentication token... d0240ef0c60a258a59dd037cc40e3e13

I can trigger the build anonymously in a browser using - http://JenkinsHostName:8080/job/SomeStuff/build?token=d0240ef0c60a258a59dd037cc40e3e13 but I am unable to trigger from scm when pushing.


I have the following setup in the Jenkins plugin for the repository...


Project : SomeStuff
Token : d0240ef0c60a258a59dd037cc40e3e13 (token configured in Jenkins -> Build Triggers -> Trigger builds remotely -> Authentication token
Username : A_DOMAIN_USER
API Token : d0240ef0c60a258a59dd037cc40e3e13

Scm manager is logging...

10:19:22.213 [qtp1729135-21] WARN  sonia.scm.web.filter.BasicAuthenticationFilter - username or password is null/empty
10:19:24.462 [Hook-10] INFO  sonia.scm.jenkins.JenkinsRepositoryHookHandler - call jenkins at http://JenkinsHostName:8080/job/SomeStuff/build

10:19:24.618 [Hook-10] ERROR sonia.scm.jenkins.JenkinsRepositoryHookHandler - jenkins returned status code 404

I have tried a combination of the plugin parameters to construct the url : http://ws066169.via.novonet:8080/job/SomeStuff/build?token=d0240ef0c60a258a59dd037cc40e3e13 but cannot get it to work.

What am I doing wrong? Thanks in advance. Graeme


--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages