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

Incorrect job result metadata after build re-run

    XMLWordPrintable

Details

    Description

      Summary

      Bamboo is showing incorrect metadata when a build is re-run.

      Steps to Reproduce

      1. Make sure you have at least 2 users inside Bamboo (e.g. admin and bob).
      2. Create a new Plan.
        • It's not even necessary to set up a source repository.
      3. Create 2 stages inside the plan and make the second one is a manual stage:
        • Default Stage.
        • Second Stage.
      4. Inside the first stage create a job with a simple script task (e.g. echo "My first job!").
      5. Inside the second stage create another job with a simple script task (e.g. echo "My second job!").
      6. As the admin user, trigger the first build of that plan, including the manual stage.
      7. Log out of Bamboo and log back in as bob.
      8. Access that build and click Run > Rerun this build, including the manual stage.
      9. After that check the Metadata tab for both the build result and the second job result.

      Expected Results

      Both jobs should display the following metadata:

      Job #1
      Key Value
      ManualBuildTriggerReason.stageName Default Stage
      ManualBuildTriggerReason.userName bob
      Job #2
      Key Value
      ManualBuildTriggerReason.stageName Second Stage
      ManualBuildTriggerReason.userName bob

      This is because bob re-run the build.

      Actual Results

      The build metadata information is correct but the jobs are not:

      Job #1
      Key Value
      ManualBuildTriggerReason.stageName Second Stage
      ManualBuildTriggerReason.userName admin
      Job #2
      Key Value
      ManualBuildTriggerReason.stageName Default Stage
      ManualBuildTriggerReason.userName admin

      Each job is displaying the incorrect stage name – it should be the other way around – and both jobs have the user name set to admin when in fact bob is the one that re-run that build.

      Attachments

        Issue Links

          Activity

            People

              moles Marcin Oles
              brosa Bruno Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: