I am using gitlab-runner for my CI tasks on centos 7. I have to build the project and then run it.
In my different xml
and .sh
files I have different paths which refer to some other files in some directory. For example a file can have path like /home/gitlab-runner/builds/zzzzz/0/some_folder/run_script.sh
But each time gitlab-runner starts building the project in a different path like /home/gitlab-runner/builds/zzzzz/1/
. It causes issues, I have to change all the paths in files.
I want it to build always in the same directory as /home/gitlab-runner/builds/zzzzz/0/
.
Any help will be appreciated.