Hi everybody.
When files are mounted in docker container which is run during bitbucket pipeline performing, their last file modification time is changed (it is set as the execution time of the pipeline script)
Why is this happening?
Some of my script depends of file modification time. For example in my pipeline I run compressing resources of my framework, and push them back to repository if need, and the name of the folder where they publish, depends of file modification time of these resources.
Hello and welcome to the community!
When you run a build in Pipelines, the repository is cloned in the Docker container that starts.
The file modification time is something set by Git. You will see the same behavior if you e.g. clone a repository in your computer, the modification time for the files is going to be the time that you made the clone.
This is an intentional decision by the Git team and is addressed in the following question:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.