Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-7025

ChainCompletedEvent is published before buildStatus has been determined

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 2.7 beta2, 2.7
    • Stages
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      I was trying to do something like this in my listener:

      final ChainCompletedEvent chainCompletedEvent = (ChainCompletedEvent) event;
      
      // update dependencies only if chain has completed successfully
      if (chainCompletedEvent.getBuildContext().getBuildResult().getBuildState() == BuildState.SUCCESS)
      

      but getBuildState() returns BuildState.UNKNOWN every time.

            [BAM-7025] ChainCompletedEvent is published before buildStatus has been determined

            Once it is fixed, https://atlaseye.atlassian.com/changelog/bamboo?cs=129858 should be reverted.

            Krystian Brazulewicz added a comment - Once it is fixed, https://atlaseye.atlassian.com/changelog/bamboo?cs=129858 should be reverted.

              mwent Marek Went (Inactive)
              kbrazulewicz Krystian Brazulewicz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: