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!

    Pipeline Stage Group Approval Notification

    Scheduled Pinned Locked Moved Support
    notifiersbuildmaster
    5 Posts 3 Posters 44 Views
    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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      The following error shows up in the logs after completion of a stage that has an ApprovalRequiredEventListener attached as a Post-Deployment action.

      Unhandled exception: Unable to cast object of type 'Inedo.BuildMaster.Events.ExecutionCompleteEvent' to type 'Inedo.BuildMaster.Events.BuildPromotionCompletedEvent'.
      

      I found the previous entries for BM-2370 - FIX: "System.InvalidCastException" attempting to run Approval Required event listener in the service. However that entry seems to apply to BuildMaster 5.6.8 and was fixed in 5.6.9 I am currently evaluating using version6.1.7.

      Product: BuildMaster
      Version: 6.1.7

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Mark,

        Approval Required listens for Build Promotion Completed events, so the pipeline stage filter should have the name of the stage of the pipeline immediately before the approval gate, not the stage that is blocked by the approval gate.

        Will this resolve your issue?

        Thanks,
        Jason

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

          I do not think so, or at least perhaps the instructions and advice were not perfectly clear.

          I am unable to upload am image, so I will try reducing it to text.

          There are 3 Pipeline Stages: Build Ready -> Testing -> Production
          
          Build Ready: Imports artifacts from Jenkins. No approvals required, automatically deploys to the next stage (Testing)
          
          Testing: Deploys to the test environment. No approvals required, 2 post-deployment notifications are registered: Notify on deployment complete,  and Notify for Approvals. Automatically deploys to the next stage (Production)
          
          Production Deploys to the production environment. 2 approvals required: Group Approval, and All Issues Closed, 1 post-deployment notification is registered: Notify on deployment complete.
          

          The problem is that the Group Approval notification is never sent. Instead the Unhandled exception: Unable to cast object of type 'Inedo.BuildMaster.Events.ExecutionCompleteEvent' to type 'Inedo.BuildMaster.Events.BuildPromotionCompletedEvent'. error is recorded.

          However, if I remove the Group Approval and replace it with a User Approval (and subsequently make sure that the user has an entry in "My Event Listeners") then the approval email notification is successfully sent.

          1 Reply Last reply Reply Quote 0
          • jjonesJ Offline
            jjones inedo-engineer
            last edited by

            Hi Mark,

            We have created an issue for this and will be prioritizing this for a future release.

            Thanks,
            Jason

            1 Reply Last reply Reply Quote 0
            • jraschJ Offline
              jrasch inedo-engineer
              last edited by

              Hi Mark,

              This bugfix will be included in v6.1.11 due out this Friday. Thank you for your patience.

              Thanks,
              -John

              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