ros-industrial / jenkins_config

Contains jenkins CI configuration scripts.
4 stars 6 forks source link

git fails to pull changes due to local changes in the file mode. #1

Closed jrgnicho closed 10 years ago

jrgnicho commented 10 years ago

Whenever a file's mode (read/write/execute ,etc) was changed locally the the git pull fails. As a result, jenkins will try to build each time the trigger_jobs.sh script runs since the repo(s) was never updated.

jrgnicho commented 10 years ago

This issue can be address by modifying the git configuration of the local machine. Change the 'fileMode' property in order to ignore mode changes in files; on a Linux terminal run the following command: git config core.fileMode false

This solution was suggested in the following link: http://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-mode-changes-chmod

jrgnicho commented 10 years ago

Installation instructions in the ReadMe.txt (Pull request #8) file now include the step for solving this issue.