bbrun icon indicating copy to clipboard operation
bbrun copied to clipboard

steps.forEach is not a function

Open grug7 opened this issue 6 years ago • 2 comments

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

grug7 avatar Dec 12 '19 15:12 grug7

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

pulinau-alt avatar Jan 01 '20 02:01 pulinau-alt

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

niklasga avatar Nov 14 '23 12:11 niklasga