[FIXED JENKINS-17482] Support folders.

See [JENKINS-17482](https://issues.jenkins-ci.org/browse/JENKINS-17482).