Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bitbucket-pipeline validator not working properly? Edited

I cant seem to get my bitbucket-pipelines.yml to validate for some reason.

https://bitbucket-pipelines.prod.public.atl-paas.net/validator


pipelines:
tags:
v*:
- step:
name: Test
image: node:8.9-alpine
caches:
- node
script:
- npm install
- npm test

- step:
name: Build & Push image to GCR
image: google/cloud-sdk:alpine
services:
- docker
script:
- export IMAGE=$IMG_NAME:$BITBUCKET_TAG
- docker build -t $IMAGE .
- docker tag $IMAGE $GCLOUD_REGION/$GCLOUD_PROJECT_ID/$IMAGE
- echo $GCLOUD_API_KEYFILE | base64 --decode --ignore-garbage > ./gcloud-api-key.json
- gcloud auth activate-service-account --key-file gcloud-api-key.json
- gcloud config set project $GCLOUD_PROJECT
- gcloud docker -- push $GCLOUD_REGION/$GCLOUD_PROJECT_ID/$IMAGE

 

Could anyone point me out what is wrong, because that validator is not helping...

 Thanks

 

EDIT: cant seem to submit an answer because of a bug:
atlassianBug.pngAnd yes I did spam the answer button multiple times because of this aggravating bug.

1 answer

You are missing indentation of everything under "step":

pipelines:
tags:
v*:
- step:
name: Test
image: node:8.9-alpine
caches:
- node
script:
- npm install
- npm test

 Also take a look at using YAML anchors for better readability and re-using definition blocks.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

503 views 6 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you