Writing a bamboo deployment task -
i have written couple of tasks bamboo. non of them available deployment stage.
i have tried setting category name deployment, still no success.
here task section in atlassian-plugin.xml.
<tasktype key="mydeploymentservice" name="my deployment service" class="za.co.my.bamboo.plugin.mydeploymentservicetask"> <category name="deployment"/> <configuration class="za.co.my.bamboo.plugin.mydeploymentservicetaskconfigurator"/> <resource type="freemarker" name="edit" location="my/editmydeploymentservice.ftl"/> <resource type="freemarker" name="view" location="my/viewmydeploymentservice.ftl"/> </tasktype>
the tasktype module definition's category
element within atlassian-plugin.xml
purely informational, i.e. determines section of bamboo's task selection dialog task sorted.
section introduction 5.0 - deployments within bamboo developer documentation explains underlying concepts , necessary changes task supports deployment projects:
tasks still big component of deployments defining each individual step version deployed. [...] can find full tutorial on developing tasks bamboo on bamboo tasks api page. all existing tasks should work bamboo 5.0 builds, need adjusting support deployments. [emphasis mine]
the differences between deployment tasks , build tasks , changes might need make highlighted in subsequent section interfaces:
to maintain backwards compatibility existing tasks, original task interfaces have been left alone. have introduced 2 new interfaces, super-interface used when supporting both builds , deployments , deployment specific interface
check table there details. personal experience can attest that, assuming task doesn't use of few concepts not supported deployment tasks (e.g. build definition, tests, revisions/checkouts/build changes), changes trivial implement such, i.e. replacing pre 5.0 build interface post 5.0 interface supports both build , deployment.
Comments
Post a Comment