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!

    Expectations of a resource monitor set to "Create a build in a release"

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 2 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.
    • B Offline
      brandon_owensby_2976
      last edited by

      I'm testing out the git resource monitor feature and had an unexpected (but not shocking) result. I was testing the scenario of you creating a release it being ready for production but you aren't wanting to to release it just yet but you create a new release to start new work.

      The resource monitor is set to "Create build in a release" and match "Associated with commit branch". I was expecting it to look for the first matching release and create the build there (so hoping it would create the build on the newest release). What ended up happening instead is it created 2 builds, one in each release.

      I totally understand if this is by design but if it isn't I thought you would want to know. If it is, I'm curious if there is a way to make it work the way I said. I don't see it as an unreasonable thing that you will start working on the next release before the previous release is released to production.

      I'm guessing there is a chance you will say I'd have to go the custom script approach, if that is the case do you have any samples with that?

      Thank you,
      Brandon

      atrippA 1 Reply Last reply Reply Quote
      • atrippA Offline
        atripp inedo-engineer @brandon_owensby_2976
        last edited by

        Hi @brandon_owensby_2976 ,

        This is indeed by design. You've got two active releases that are associated with a single branch. So, a commit to that branch will trigger builds in both releases.

        From a best practices standpoint, you should not start new development work on a branch that is being validated for production. If there's an issue detected during testing, fixing that would involve undoing the new work and/or incorporating even more changes in the pipeline.

        Your best bet is to not have multiple releases targeting the same branch. If you want to start on a "new release to start new work" while a current release is in the pipeline, I would just create a branch in Git and work off that.

        Otherwise, I can't think of a work-around here without using some complex/convoluted scripting. There's just no way to programmatically "know" which release the commit was intended for.

        Hope that helps,

        Alana

        1 Reply Last reply Reply Quote

        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