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

Changing repository in Repository Commit configuration is not reflected to all Bamboo users

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 9.0.1, 9.1.0, 8.2.7
    • 7.0.6, 8.2.4
    • Deployments, Tasks
    • None

    Description

      Issue Summary

      When changing the repository in the Repository Commit configuration by userA. UserB is not getting the same configuration

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a deployment that contains Repository Commit task with userA
      2. Add a user (userB) to have edit privilege to the deployment.
      3. Change the repository inside the Repository Commit task with userA
      4. View the task configuration with userB

      Expected Results

      userA and userB will see the new changed repo in the Repository Commit task

      Actual Results

      userA see the new changed repo
      userB see the old changed repo

      When exporting the deployment configuration as Java specs it gets the correct repo

      I tried to run the deployment with userB got the below error:

      26-Sep-2022 10:59:02	Starting task 'Repository Commit' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.commit'
      26-Sep-2022 10:59:02	Error occurred while running Task '(3)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.commit.
      26-Sep-2022 10:59:02	com.atlassian.bamboo.task.TaskException: Repository id 950273 is invalid. Please reselect from the configuration screen.
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.utils.BambooPreconditions.checkThat(BambooPreconditions.java:29)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.plugins.vcs.task.VcsCommitTask.execute(VcsCommitTask.java:52)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:205)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:177)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:169)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:162)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:122)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
      26-Sep-2022 10:59:02	        at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
      26-Sep-2022 10:59:02	        at java.base/java.lang.Thread.run(Thread.java:829)
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        1. image-2022-09-26-13-31-57-428.png
          image-2022-09-26-13-31-57-428.png
          361 kB
        2. screenshot-1.png
          screenshot-1.png
          102 kB
        3. screenshot-2.png
          screenshot-2.png
          121 kB
        4. screenshot-3.png
          screenshot-3.png
          120 kB
        5. screenshot-4.png
          screenshot-4.png
          306 kB

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              feeaafc2eddb Mohamed Ayman
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: