We get ARA packages from Jenkins using the ARA plugin. I want to add the correct Release (as set up in ARA) to the ARA Package during the preparationscript in AE (which today loads commit-texts from Mercurial and puts them on the ARA Package).
We have put a Dynamic Property on the Jenkins build step which is available in the AE-job-script.
The question is: What code do i need to write in order the get the Release list from ARA/AE and then put the value that match the Dynamic Property onto the ARA Package?
(Today we can manually assign a Release to the ARA Package but we want to automate this).
Answer from Automic:
setting the release of a package can be done using ARA ImportExportCLI. You'd
need to do the following steps:
Export the created package via "export" to xml or csv: Exported file
will contain the property system_release.system_name which is empty.
Adapt the exported file to set the name of the release and then import it with
"import" command: Release of the package will be set. Note: To get
the list of Releases you can also use the ARA "export" function.
can use ImportExportCLI either by command-line tools or by directly calling the
WebService. Please see "ARA Integration Guide", chapter 3 - Import
and Export services.