Jenkins and CodeStream CSRF fix
def instance = Jenkins.instance
This has been ok, until my container, running Jenkins, restarted or got updated, and then I got the error again.
Today I finally took the time, to fix it, and it was really simple.
It turns out, that the error is due to using username/password in Code Stream, and not token.
Code Stream supports, username/password, and don't mention token, anywhere.
So I tried to replace my password, with a token I created, and it worked.
And now I don't get the errors anymore.
So a heads up. If you are using username/password, then generate a token, and replace your password with it, to be future proof.
You generate a token, by following the steps below.