wolfeidau / rake-bamboo-plugin

Plugin for bamboo which enables building of ruby projects using rake
Other
34 stars 16 forks source link

Can't use Capistrano tasks in deployment projects #42

Closed akorthaus closed 11 years ago

akorthaus commented 11 years ago

I Installed Bamboo 5.0 and Bamboo Ruby Plugin v. 2.0 on a Debian Squeeze host, and I'm trying to use Capistrano from the new deployment projects feature of bamboo:

https://confluence.atlassian.com/display/BAMBOO/Tasks+for+deployment+environments

While I still can use Capistrano tasks in my build plans, I can't use a Capistrano task in a deployment project, there is no Capistrano task to select.

Any ideas?

wolfeidau commented 11 years ago

I haven't looked at this yet, I am currently restructuring the code internally to make some of these things easier.

Hopefully @i386 can give me the rundown on developing these deployment tasks.

Will get back to you on this.

akorthaus commented 11 years ago

The following document has been added to the developer docs just a few days ago: https://developer.atlassian.com/display/BAMBOODEV/Introduction+to+5.0+-+Deployments

There you can read: "All existing tasks should work with Bamboo 5.0 builds, but need adjusting to support deployments...", which is described there.

It sounds like you just have to change TaskType into CommonTaskType or DeploymentTaskType in line:

https://github.com/wolfeidau/rake-bamboo-plugin/blob/master/src/main/resources/atlassian-plugin.xml#L47

But could be more complicated, I'm definitely not a bamboo plugin expert ;)

And what I've seen in https://github.com/wolfeidau/rake-bamboo-plugin/blob/master/src/main/resources/atlassian-plugin.xml#L54 is that you've choosen category "builder" for the current capistrano task, not "deployment": https://developer.atlassian.com/display/BAMBOODEV/Tasks+Overview#TasksOverview-SelectingtheTaskType

wolfeidau commented 11 years ago

Thanks a lot for doing this research I am almost finished on my enhancements to the windows support enabling more than one ruby installation and tidying up some of the internals.

I will take a shot at upgrading the Capistrano task next.

Cheers

i386 commented 11 years ago

Let me know if I can help Mark

Sent from my iPhone

On 1 Aug 2013, at 8:24 am, Mark Wolfe notifications@github.com wrote:

Thanks a lot for doing this research I am almost finished on my enhancements to the windows support enabling more than one ruby installation and tidying up some of the internals.

I will take a shot at upgrading the Capstrano task next.

Cheers

— Reply to this email directly or view it on GitHub.

wolfeidau commented 11 years ago

This is fixed in the last release.