Add 2 modes : from a folder or from a Jenkins instance