mserranom / bbrun

Run Bitbucket Pipelines locally
MIT License
203 stars 32 forks source link

steps.forEach is not a function #55

Open grug7 opened 4 years ago

grug7 commented 4 years ago

returning following error steps.forEach is not a function when running the following

command:

bbrun --template test-pipelines.yml

test-pipelines.yml

image: node:10.14.1

definitions:
  caches:
    node: node_modules
  steps:
    - step: &Test
        name: Run Tests
        caches:
          - node
        script:
          - npm run test:pipeline-ob
          - npm run test:pipeline-webauth
pipelines:
  default:
    "**":
      - step: &Test
pulinau-alt commented 4 years ago

I believe the default pipeline doesn't need to have "**". Removing that should fix your problem.

splitfeed commented 7 months ago

May have changed since this issue was created, but as it is currently it is not allowed to put any branch argument there. https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Default