Code changed in jenkins
JENKINS-18401: Don't fail on files outside $JENKINS_HOME
This plugin can only put things under $JENKINS_HOME into SCM. If
workspaces are located elsewhere, it failed with an exception.
Newly, we just ignore such files. In all likelihood, users won't want
to sync workspace files anyway. The same goes for the builds directory.
People who really might want to put stuff from there into SCM can
try symlinking to their desired workspace/build roots from
$JENKINS_HOME. Restoring from SCM may, however, then produce unexpected
JENKINS-18401 and related issues such as JENKINS-13593 and
Includes two tests for buildPathRelativeToHudsonRoot(), and use
org.junit.Assert.assertNotNull etc.instead of the hamcrest matchers.