Made it work with jenkins.