[BAP-90] ArtifactoryPreBuildAction throws UnsupportedOperationException: Scm of type: com.atlassian.bamboo.plugins.hg.BitbucketRepository is not supported Created: 26/Jul/11  Updated: 27/Oct/11  Resolved: 27/Oct/11

Status: Resolved
Project: Bamboo Artifactory Plug-in
Component/s: None
Affects Version/s: 1.4.0
Fix Version/s: 1.4.1

Type: Bug Priority: Blocker
Reporter: Max Friedmann Assignee: Noam Y. Tenne (Inactive)
Resolution: Fixed Votes: 0
Labels: ArtifactoryPreBuildAction, bitbucket
Environment:

Atlassian Bamboo version 3.2.2



 Description   

We cannot use the bamboo plugin in our bitbucket plans, the ArtifactoryPreBuildAction aborts the plan :

simple	26-Jul-2011 14:28:11	Build abc started building on agent def
simple	26-Jul-2011 14:28:11	Build always requires a clean checkout
simple	26-Jul-2011 14:28:11	Cleaning build directory 'xxx'
simple	26-Jul-2011 14:28:11	Updating source code to revision: xxx
simple	26-Jul-2011 14:28:12	Obtaining remote repository to agent's cache directory 'bla'...
simple	26-Jul-2011 14:28:12	Creating empty repository in directory 'def'
simple	26-Jul-2011 14:28:12	Pulling from repository `repo' to directory 'directory'
simple	26-Jul-2011 14:28:28	pulling from https://***
simple	26-Jul-2011 14:28:28	adding changesets
simple	26-Jul-2011 14:28:28	adding manifests
simple	26-Jul-2011 14:28:28	adding file changes
simple	26-Jul-2011 14:28:28	added 123 changesets with 123 changes to 123 files
simple	26-Jul-2011 14:28:28	(run 'hg update' to get a working copy)
simple	26-Jul-2011 14:28:28	Copying repository from cache directory to source directory...
simple	26-Jul-2011 14:28:28	Cloning repository `xxx' to directory 'yyy'
simple	26-Jul-2011 14:28:30	123 files updated, 0 files merged, 0 files removed, 0 files unresolved
simple	26-Jul-2011 14:28:31	Updated source code to revision: xxx
simple	26-Jul-2011 14:28:31	Executing build abc
simple	26-Jul-2011 14:28:31	Running pre-build action: Build Number Stamper
simple	26-Jul-2011 14:28:31	Running pre-build action: Artifactory Release Staging
simple	26-Jul-2011 14:28:31	Exception occurred while executing custom pre-build action 'org.jfrog.bamboo.release.action.ArtifactoryPreBuildAction@28ce41cc'. Building will abort... : java.lang.UnsupportedOperationException: Scm of type: com.atlassian.bamboo.plugins.hg.BitbucketRepository is not supported
simple	26-Jul-2011 14:28:31	Running pre-build action: VCS Version Collector
simple	26-Jul-2011 14:28:31	Running pre-build action: Clover Grails PreBuild Action
simple	26-Jul-2011 14:28:31	Running pre-build action: Repository Isolation Enabler Action
simple	26-Jul-2011 14:28:31	Running pre-build action: Maven Settings Prebuild Action
error	26-Jul-2011 14:28:31	1 error(s) found when performing pre-build actions. 
simple	26-Jul-2011 14:29:53	Running on server: post build plugin 'NCover Results Collector'
simple	26-Jul-2011 14:29:53	Running on server: post build plugin 'Clover Delta Calculator'
simple	26-Jul-2011 14:29:53	Running on server: post build plugin 'Build Hanging Detection Configuration'
simple	26-Jul-2011 14:29:53	All post build plugins have finished
simple	26-Jul-2011 14:29:53	Generating build results summary...
simple	26-Jul-2011 14:29:53	Saving build results to disk...
simple	26-Jul-2011 14:29:53	Indexing build results...
simple	26-Jul-2011 14:29:53	Finished building bla.

Don't know how you handle the priorities, but for us, its a Blocker



 Comments   
Comment by Yossi Shaul [ 26/Jul/11 ]

Did you trigger a release build or a normal build?

Comment by Max Friedmann [ 26/Jul/11 ]

A normal build...

Comment by Max Friedmann [ 27/Jul/11 ]

And : Bamboo doesn't show any logs any more... If I delete the artifactory plugin again, it works! The log div in the plan overview and in the job itself just shows the circle and "Loading log entries..."

Comment by Noam Y. Tenne (Inactive) [ 27/Jul/11 ]

Thanks for reporting this; I'll look into it ASAP.

Comment by Max Friedmann [ 09/Aug/11 ]

I still cannot activate the plugin. It destroys the log mechanism of all Bamboo plans/jobs. I also cannot access the "plugins" section in the administration if the plugin is enabled!

Comment by Noam Y. Tenne (Inactive) [ 09/Aug/11 ]

Can you provide us with a couple of screenshots depicting these problems?
Also, do you see exceptions in the server log when these occur?

Comment by Noam Y. Tenne (Inactive) [ 24/Sep/11 ]

Hi Max,

Can you please retest your issue with v1.4.2 and see if the error still occurs (the plugin incompatibility, that is)?

Comment by Max Friedmann [ 27/Oct/11 ]

NPE is gone, but now I don't have any "Executables" anymore in the "Artifactory Maven 3 Task Configuration"...

Comment by Noam Y. Tenne (Inactive) [ 27/Oct/11 ]

Can you see any Artifactory Maven 3 Task executables in Bamboo's global configuration?

Comment by Max Friedmann [ 27/Oct/11 ]

Nope. After I had to disable the plugin, we had serious problems to get rid of them again. We deleted all artifactory maven builder and afterwards also the requirements which were left over in serveral jobs (and aren't deleted when deleting the artifactory maven "affected" task).

Comment by Noam Y. Tenne (Inactive) [ 27/Oct/11 ]

So you've got to add an executable for it, pointing to a Maven installation directory.

Comment by Max Friedmann [ 27/Oct/11 ]

Why can't I use the standard maven builders?

Just imagine you have 85 bamboo agents...

Comment by Noam Y. Tenne (Inactive) [ 27/Oct/11 ]

You can use the standard Maven builders, but they won't provide you with the Build Info functionality.

Comment by Max Friedmann [ 27/Oct/11 ]

Ok, then I can also just hit "mvn deploy" with the same effect

I added the builders to some agents, unfortunately creating an artifactory maven 3 task does not create any connection to the agent capability. So its executed on any various agent which then says again :

Maven home is not defined!

But I can handle that as well by adding the capability by myself...

Generated at Tue May 21 21:42:23 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.