I am trying to add bamboo-specs feature to matlab-bamboo-plugin so that users can specify their build configuration as a YAML file. While doing so, I am not able to verify the implemented changes on my bamboo local dev instance. The implemented changes are available here.
Any sort of guidance would be appreciated, thanks!
(FYI the plugin is not available on the Atlassian Marketplace. The users download the jar file from the mentioned repository and upload it to their bamboo)
Hello @Kapil Gupta,
Each app needs to implement its own Export methods so Bamboo can use them to build its Java and YAML Specs.
First, try to export your Plan to YAML Specs and use it as a model. If the app configuration doesn't show up on the YAML code, try exporting to Java Specs.
If you can export the Plan configuration to Java Specs and it contains the instructions for your Matlab app, you can try following the instructions on the KB below and adapt to your YAML code (not guaranteed to work):
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Hey @Eduardo Alvarenga ,
Thanks for your reply!
I have implemented export methods for all my tasks (three in our MATLAB plugin). When I try to export my plan to Java Specs, it does show me my task's conversion (see image1 below), but when I try to export my plan to YAML specs instead of using a keyword related to my task, it uses any-task keyword along with the key to convert the plan to specs (see image2 below).
IMAGE 1:
IMAGE 2:
Few puzzles:
IMAGE 3:
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Kapil Gupta
Any-task is the generic implementation for apps that don't have a specific export/import structure. Each task is distinguished by its 'plugin-key' value. Just use the model on "Image 2" and it should be ok.
Thank you,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Eduardo Alvarenga ,
That is what I'm trying to check. I have extended bamboo-specs feature for my plugin tasks (now it should be able to import/export; and it indeed can for "Java specs"), why is it still using any-task for conversion to "YAML specs".
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your app needs to have a proper builder, properties and exporter classes to be able to fully export to YAML (and that needs to be implemented).
When that's not implemented, simply use any-task.
Cheers,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Eduardo Alvarenga ,
I have implemented the required builder, properties and exporter classes for my plugin as per this doc. But still I'm not able to export my plan to YAML specs as expected (something like image 3). When I try to provide the code snippet from image 3 in my YAML file and run the pipeline, I get an incorrect document structure error (below image).
If you'd like to have a look at the implementation, it is available here.
Thanks and regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Eduardo Alvarenga and team,
Any idea why we might be encountering this error with our implementation? Or we might be missing?
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Eduardo Alvarenga and team,
We're still stuck here. It would be great if you could have a look and provide some guidance. Thanks in advance!
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Eduardo Alvarenga and team,
It would be great if you could have a look and provide some guidance. Thanks in advance!
Regards,
Kapil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.