Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14473

Pipelines fail when the 'environment' section of a service includes more than one values

    XMLWordPrintable

Details

    Description

      Steps to Reproduce

      Edit the .yml in a repo with the following, commit it and push:

      #!python
      
      pipelines:
        branches:
          master:
            - step:
                image: redis
                script:
                  - redis-cli -h localhost ping
                services:
                  - redis
                  - database
      definitions:
        services:
          redis:
            image: redis
          database:
            image: mysql
            environment:
              MYSQL_ROOT_PASSWORD: password
              MYSQL_RANDOM_ROOT_PASSWORD: yes
      

      Expected Results

      The build succeeds.

      Actual Results

      The build fails with the following error:

      "The 'environment' section in your bitbucket-pipelines.yml file must be a map."

      Notes

      The build succeeds if the example .yml file above includes only

      #!python
      
      MYSQL_ROOT_PASSWORD: password
      

      in the environment section.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tboudale Theodora Boudale
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: