SyntaxFix
Write A Post
Hire A Developer
Questions
I ran into this issue and it turned out the problem was that the jenkins service wasn't being run as the jenkins user. So running the commands as the jenkins user worked just fine.