Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Feature Request - Specify Release Template When Using Release API



  • I am looking to automatically create a new release using the "Create Release" endpoint (/api/releases/create). Unfortunately, it does not look like that endpoint supports specifying a release template although the JSON Native API (Releases_CreateOrUpdateRelease) does support it. For now I am just using the Native API but given the sentiment that the Native API is not guaranteed to have the same stability as the Release API it would be nice if the same functionality could be brought over to the newer API.

    Furthermore, it seems that a Pipeline_Id is required in order to use the Releases_CreateOrUpdateRelease call which is somewhat unintuitive since a template is meant to specify the pipeline used by a release. A newly created release will have the pipeline specified by the Pipeline_Id instead of the tempale's pipeline. To get around this before creating the new release I first have to make a call to ReleaseTemplates_GetTemplateByName. Then I parse the ReleaseTemplate_Configuration that is returned for the Pipeline attribute. Next, I have to make a call to Pipelines_GetPipelines and compare the results to find the matching Pipeline_Name before finally getting the correct Pipeline_Id to pass into Releases_CreateOrUpdateRelease. It would be nice if either the Pipelin_Id parameter was optional or the template's pipleline took precedent.

    Product: BuildMaster
    Version: 5.6.8



  • We'll add this, likely as a separate endpoint i.e. api/releases/create-from-template or something like that.

    It will appear as BM-2384 in the release notes (likely before it is actually documented on inedo.com).



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation