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

Docker should use different config to store credential

      Issue Summary

      If one Docker tasks configured with "Use the agent's native credentials" and another with a specific credential, the second Docker task will overwrite the default config.json file causing the first Docker task to fail with authentication error

      Steps to Reproduce

      1. Create two plans
      2. The first plan have a Docker task with "Use the agent's native credentials"
      3. The second plan have a Docker task with username and password, or shared credential
      4. Run the first plan
        It run successfully with the default credential configured in the machine config.json
      5. Run the second plan
        The second plan run successfully with a different credential
      6. Run the first plan again

      Expected Results

      • The first plan will run successfully again
      • The second plan should run Docker command with --config option to store the credential in another file

      Actual Results

      The first plan fail with authentication error

      Notes

      The second plan Docker task credential have overwrite the default credential stored in ~/config.json file causing the first plan to use the credential that only works in second plan

      Workaround

      Avoid using Docker task in second plan. Replace it with Script task to use --config option

            [BAM-20439] Docker should use different config to store credential

            There are no comments yet on this issue.

              73868399605e Eduardo Alvarenga
              klfoong Foong (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: