Forums

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

Is git in pipeline cached?

standus
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!
August 9, 2025

I have pipeline with this command:

export FILES=$(git diff-tree --no-commit-id --name-only --diff-filter=ACMR -r HEAD^^..HEAD)

but it will return files which are commited few commits before. My last commit has different diff. When I try this command on my local PC I see correct changed files, but pipeline generate different.

Is it possible that git on pipelines image is cached?

My pipeline script has no any cache settings. 

 

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
August 11, 2025

@standus I think printing out the hash of the current HEAD would be a good idea. The output written to stdout will appear in the your pipeline's log.

With the hash, you could determine if the pipeline is seeing the HEAD you are expecting.

To be honest, the pipeline should see the commit which triggered the build, and I never saw any problem with it.

Suggest an answer

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

Atlassian Community Events