Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.