Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    templatesapibuildmaster
    2 Posts 2 Posters 7 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jharbison
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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).

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation