I am working to start using pipelines.
I want to test a pipeline run on a branch I have created, feature/GG-123.
I created this bitbucket-pipelines.yaml through the editor that runs in bitbucket cloud.
image: atlassian/default-image:2
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
feature/GG-123:
- step:
services:
- docker
script:
- apt-get update
- curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
- python get-pip.py
- pip install awscli
- rm get-pip.py
- IMAGE="009255884135.dkr.ecr.us-east-1.amazonaws.com/spear-new/spear-www"
- TAG=${BITBUCKET_BRANCH:-$BITBUCKET_TAG}
- aws configure set aws_access_key_id "${$AWS_ACCESS_KEY_ID}"
- aws configure set aws_secret_access_key "${$AWS_SECRET_ACCESS_KEY}"
- eval $(aws ecr get-login --no-include-email --region ${$AWS_DEFAULT_REGION} | sed 's;https://;;g')
- docker build -t $IMAGE:$TAG .
- docker push $IMAGE:$TAG
This created a commit apparently attached to my master branch.
It ran and echoed "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
I committed the file to the root directory of feature/GG-123 and pushed that.
No pipeline run.... and when I look under that branch in pipelines, I see
Try changing your filters
It seems simple from the docs. What am I missing?
Hi @Greg Gray ,
Welcome to the community!
I replicated the steps mention above and I wasn't able to reproduce the error you mention.
However, I saw that you created this comment yesterday which might have coincided with a bitbucket incident.
Do you mind trying again?
https://bitbucket.status.atlassian.com/incidents/vk3h2lwb4cth
Please, just let me know if the problem persists.
Cheers
Hi @Joao Sgreccia and thanks for the reply.
I filed a support ticket as well and the tech that picked it up noted that I had the .yaml extension instead of .yml which was the root issue.
Thanks for looking.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.