You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I keep receiving this error message:
There is an error in your bitbucket-pipelines.yml at [pipelines > branches > fixing-yaml > 0 > parallel > 4]. To be precise: The step section is empty or null.
It doesn't make any sense to me, I have nothing empty. even Atlassian's validator online says it's all good.
Also, the pipeline works fine, until I add another step, and it shows that.
clone:
depth: full
definitions:
caches:
sonar: ~/.sonar
steps:
- step: &lint
name: Lint
script:
- echo "Add linting here"
- step: &aws
name: AWS oidc setup
image: amazon/aws-cli
oidc: true
script:
- export AWS_REGION=us-east-1
- yum update
- yum install -y jq
- step: &sonarqube
name: SAST - SonarQube
runs-on:
- self.hosted
- linux
script:
- pipe: sonarsource/sonarqube-scan:1.0.0
variables:
SONAR_HOST_URL: ${SONAR_HOST_URL}
SONAR_TOKEN: ${SONAR_TOKEN}
- step: &unit-test
name: Unit Test
script:
- echo "Add Unit Tests here"
- step: &build
name: Build
script:
- ./cicd/build.sh
services:
- docker
caches:
- docker
- step: &deliver
name: Deliver
script:
- ./cicd/promote.sh
pipelines:
default: # Runs on every commit for branches not defined elsewhere
# - step: *sonarqube
- parallel:
- step: *lint
- step: *unit-test
- step: *build
pull-requests:
'**': # this runs as default for any branch not elsewhere defined
# - step: *sonarqube
- parallel:
- step: *lint
- step: *unit-test
- step: *build
branches: # these will run on every push of the branch
master:
# - step: *sonarqube
- parallel:
- step: *lint
- step: *aws
- step: *unit-test
- step: *build
- step: *deliver
...
...
branches: # these will run on every push of the branch
master:
# - step: *sonarqube
- parallel:
- step: *lint
- step: *aws
- step: *unit-test
- step: *build
Nevermind.. Found my error... I had a few spaces missing.. indentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.