https://wp.jochen.hayek.name/blog-en/2016/04/15/jenkins-how-to-authenticate-as-a-scripted-client/
Jenkins: how to authenticate as a scripted client?