How to use Jenkins plugin in IntelliJ IDEA (crumb data fix)

H

I recently installed the jenkins control plugin in my Intellij IDEA (https://plugins.jetbrains.com/plugin/6110-jenkins-control).

Once installed, I added the server address, my username and password. Pressing “Test Connection”… I got an error like “CSRF enabled -> Missing or bad crumb data“.

I searched for my crumb data using the url like

Solution

You need to create an API token in jenkins for your user. This can be done by going to this URL for your jenkins: http://<jenkins_url>/user/<username>/configure

Go to “API Token” and click on “Add new token”.

Give it a name and copy this token

Next, fill this token into the password field in IntelliJ and press “Test Connection”> You sould be successful now.

1 comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tag Cloud

Categories