Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bitbucket-clear-cache skipped

Jefferson Xavier October 21, 2022

The following step is skipped even though there is a change, on no logs to display:

    clear-cache: &clear-cache-if-needed

      name: "Clear cache if dependency changed"

      script:

        - pipe: atlassian/bitbucket-clear-cache:3.1.1

          variables:

            BITBUCKET_USERNAME: $BITBUCKET_USERNAME

            BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD

            CACHES: ["node"]

            DEBUG: "true"

      condition:

        changesets:

          includePaths:

            # only if package.json file has changed

            - 'package.json'

2 days ago it was working perfectly.

2DaysAgo.png

Now:

Today.png

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2022

Hi @Jefferson Xavier,

Welcome to the community.

Would it be possible for you to confirm if the change from the 2nd build is from the file package.json?
You can go to the Pipelines build and click the commit hash to review the file(s) changes.

Regards,
Mark C

Jefferson Xavier October 25, 2022

Hi Mark!

Yes, there was a change in the package.json file.

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 26, 2022

Thanks for that.

Btw, is it a push or pull-request trigger?

Regards,
Mark C

Jefferson Xavier October 27, 2022

Pull-request

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 31, 2022

Hi @Jefferson Xavier

Thanks for that info.
When the Pipelines build is triggered by the pull request, is it a merged PR or just a typical PR update?
This is for me to test the scenario on my end.

Regards,
Mark C

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events