Condition changeset steps are not working in pipeline

Rajnish Kumar
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 17, 2023

Hello Team,

I am trying to run a conditional pipeline based on change in particular directory in same repository.

I have below steps in my file and I want if any merge happens in backend related folder then related test script should run and if changes happens in Frontend related folder then also related script should run.

currently no pipeline is getting triggered when I merge some code in BE or FE folder. Thanks !

pipeline.png

2 answers

1 vote
Rajnish Kumar
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 19, 2023

Thank You Mark for your reply and suggestions, I did the same but still pipeline is not getting triggered if I do change in "./backend/**" or "./frontend/**" sub folders.

 

my file is in "/backend/tests" when I do some changes and after commit / push, pipeline is not getting triggered, without changeset it's working as expected.

  bitpipe.png

pipeline.pngstruct.png

1 vote
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 18, 2023

Hi @Rajnish Kumar,

Welcome to the community.

For your includePaths configuration, would it be possible for you to add two asterisks following the documentation below?

                includePaths:
                  - "./frontend/**"

Reference:

Let me know how it goes.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events