Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline not triggering per branch

Srinivas C
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2018

I have added branch specific steps to build the image for nodejs application, here is the pipeline

options:
docker: true

pipelines:
branches:
dev:
- step:
name: Build Prod Image
image: node:9.50
services:
- docker
script:
- npm install
- npm run buildtest

"dev" branch is available, if I add "default" block that is getting executed for master branch commit. Please let me know if this pipeline is wrong or any hint what might be going wrong

1 answer

0 votes
Shuhrat Dehkanov
Contributor
October 10, 2018

Looks like you have an indentation error in your yml file after the `- step` block, you need to put child blocks with more white-space for them to get correctly recognized.

Please use online validator when you are not sure.

Srinivas C
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 10, 2018
options:
docker: true

pipelines:
branches:
dev:
- step:
name: Build Dev Image
image: node:9.50
services:
- docker
script: # Modify the commands below to build your repository.
- npm install
- npm run buildtest

 I have verified from the same validator still not working, here is the updated one

Shuhrat Dehkanov
Contributor
October 12, 2018

I don't know if it is how you copied/pasted the yml file here, but the above is still an invalid format.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events