First step in pipeline cannot be manual

XMLWordPrintable

      I think this is a validation bug. If a pipeline has several steps before the branch-specific steps (that will always be run), and the first branch-specific step is manual, the following error is thrown:

      The first step of your bitbucket-pipelines.yml cannot be manual. Please remove this trigger from your first step or consider using custom pipelines

      Here's an example pipeline yml that fails validation:

      image: node:10.8.0
      pipelines:
        default:
        - step:
            name: Jest Tests
            script:
              - npm ci
              - npm run test:unit
        branches:
          master:
            - step:
                name: Deploy to prod
                deployment: production
                trigger: manual
                caches:
                  - node
                  - pip
                script: # Modify the commands below to build your repository.
                  - git remote set-url origin "https://$GIT_USER:$GIT_PASSWORD@bitbucket.org/max-digital/dsr-ptp-ui.git"
                  - git config user.email "$GIT_EMAIL"
                  - git config user.name "$GIT_USER"
                  - git config push.default simple
                  - apt-get update
                  - apt-get install -y python-dev python-pip ruby-compass
                  - pip install awscli # need to get a more recent version of awscli for cloudfront invalidations
                  - mkdir -p ~/.aws && printf "[profile $AWS_PROFILE_NAME]\naws_access_key_id=$AWS_ACCESS_KEY_ID\naws_secret_access_key=$AWS_SECRET_ACCESS_KEY\nregion=us-east-1" >  ~/.aws/config
                  - pip install -r requirements.deploy.txt
                  - npm ci
                  - npm run build
                  - python deploy.py --env prod --bucket $PROD_BUCKET --cloudfrontid $PROD_CLOUDFRONT_ID --profile $AWS_PROFILE_NAME
      

            Assignee:
            Unassigned
            Reporter:
            Anton Frattaroli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: