Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Error Running Jenkins Build from Mylyn Build View(Getting "Unexpected error: Forbidden" although needed rights for user are aenabled and user can run jobs from web gui without probelms)
Error Running Jenkins Build from Mylyn Build View [message #718448] Wed, 24 August 2011 11:20 Go to next message
Terence Miller is currently offline Terence MillerFriend
Messages: 5
Registered: July 2009
Junior Member

I configiured Jenkins server (Jenkins ver. 1.424 on Tomcat 7 via https) and validated connection on Eclipse Indigo and following Eclipse Plugins successfully.

I chooose a Job for the build view from job list. I can see history and data and status of my select build job.
When i try to run a job from the Eclipse Mylyn Build View or from an exception raises.

My Eclipse Plugins Versions:
  Eclipse IDE for Java EE Developers	epp.package.jee	null
  JavaHL 1.6.15 Win32 Binaries (Optional)	2.2.2.I20110602-1700	Polarion Software
  m2e - Maven Integration for Eclipse - m2e
  m2e - slf4j over logback logging (Optional) - m2e
  Maven Integration for WTP	JBoss by Red Hat
  Maven SCM Handler for Subversive	Sonatype, Inc.
  Mylyn Builds Connector: Hudson/Jenkins (Incubation)	0.8.1.v20110728-0200	Eclipse Mylyn
  Mylyn Connector: Redmine	Sven Krzyzak
  Mylyn Connector: Redmine - Redmine-Plugin-Support	Sven Krzyzak
  Mylyn Connector: Sonar (Optional)	SonarSource
  Mylyn Context Connector: Eclipse IDE	3.6.1.v20110728-0200	Eclipse Mylyn
  Mylyn Context Connector: Java Development	3.6.1.v20110728-0200	Eclipse Mylyn
  Mylyn Context Connector: Team Support	3.6.1.v20110728-0200	Eclipse Mylyn
  Mylyn Task List	3.6.1.v20110728-0200	Eclipse Mylyn
  Mylyn Task-Focused Interface	3.6.1.v20110728-0200	Eclipse Mylyn
  Mylyn WikiText	1.5.1.v20110728-0200	Eclipse Mylyn
  Native JavaHL 1.6 Implementation (Optional)	2.2.2.I20110819-1700	Polarion Software
  Saros Feature	11.7.29.r3479	null
  Sonar Integration for Eclipse (Required)	SonarSource
  Spring IDE AOP Extension (optional)	Spring IDE Developers
  Spring IDE Autowire Extension (optional)	featureProvider
  Spring IDE Batch Extension (optional)	featureProvider
  Spring IDE Core (required)	Spring IDE Developers
  Spring IDE Integration, Flex and Web Services Extension (optional)	featureProvider
  Spring IDE OSGi Extension (optional)	Spring IDE Developers
  Spring IDE Security Extension (optional)	featureProvider
  Spring IDE Web Flow Extension (optional)	Spring IDE Developers
  SpringSource Tool Suite (required)	SpringSource
  SpringSource Tool Suite Maven Support	SpringSource
  SpringSource Tool Suite Runtime Error Analysis Support	SpringSource
  SpringSource Tool Suite VMware Integration	SpringSource
  Subversive SVN Connectors	2.2.2.I20110819-1700	Polarion Software
  Subversive SVN Integration for the Mylyn Project (Optional) (Incubation)	0.7.9.I20110602-1700
  Subversive SVN JDT Ignore Extensions (Optional) (Incubation)	0.7.9.I20110602-1700
  Subversive SVN Team Provider (Incubation)	0.7.9.I20110819-1700
  Subversive SVN Team Provider Localization (Optional) (Incubation)	0.7.9.I20110819-1700
  Subversive SVN Team Provider Sources (Incubation)	0.7.9.I20110819-1700
  VMware VIX Application Programming Interface Feature	VMware, Inc.

The exeption Stacktrace from eclipse when i click "Run Build".
org.eclipse.core.runtime.CoreException: Unexpected error: Forbidden
	at org.eclipse.mylyn.internal.hudson.core.HudsonCorePlugin.toCoreException(
	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(
	at org.eclipse.mylyn.builds.internal.core.operations.RunBuildOperation$1.doExecute(
Caused by: org.eclipse.mylyn.internal.hudson.core.client.HudsonException: Forbidden
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient.runBuild(
	at org.eclipse.mylyn.internal.hudson.core.HudsonServerBehaviour.runBuild(
	... 3 more
Caused by: Forbidden
	at org.eclipse.mylyn.commons.http.CommonHttpClient.needsReauthentication(
	at org.eclipse.mylyn.commons.http.HttpOperation.needsReauthentication(
	at org.eclipse.mylyn.commons.http.HttpOperation.execute(
	at org.eclipse.mylyn.internal.hudson.core.client.RestfulHudsonClient$7.execute(
	... 5 more
Caused by: java.lang.UnsupportedOperationException
	at org.eclipse.mylyn.internal.commons.repositories.LocationService.requestCredentials(
	at org.eclipse.mylyn.builds.internal.core.util.RepositoryWebLocation.requestCredentials(
	at org.eclipse.mylyn.commons.http.CommonHttpClient.needsReauthentication(
	... 9 more
Re: Error Running Jenkins Build from Mylyn Build View [message #718684 is a reply to message #718448] Thu, 25 August 2011 04:21 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
It seems, the user, which you have configured in the Jenkins connector, doesn't have the appropriate rights. Can you check this?
Re: Error Running Jenkins Build from Mylyn Build View [message #754746 is a reply to message #718448] Fri, 04 November 2011 07:53 Go to previous message
klemens.muthmann is currently offline klemens.muthmannFriend
Messages: 1
Registered: November 2011
Junior Member

I have the same problem. Is the solution already found? Which rights do I need to assign to my user?

Thanks and Regards
Previous Topic:Mylyn souce code checkout Problem
Next Topic:Table formatting using Mylin Wikitext Textile
Goto Forum:

Current Time: Tue Oct 06 12:38:23 GMT 2015

Powered by FUDForum. Page generated in 0.02903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software