Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij : control jenkins plugin crumb data

i've installed jenkins server and run it. i've installed kenjins control plugin on intellij as described in this lin https://github.com/dboissier/jenkins-control-plugin

try to configure jenkins settings --> test connection gives me [Missing or bad crumb data]

i am using intellij 2016.3 and jenkins server 2.19.4

thanks a lot.

like image 986
jam Avatar asked Dec 24 '16 13:12

jam


People also ask

How does Jenkins integrate with IntelliJ?

Setting up IntelliJ IDEAOpen IntelliJ IDEA. Click on Import Project, and in the popup, choose the directory where Jenkins had been cloned. Select 'Create project from existing sources', and click on Next. Click on Finish.


2 Answers

CRSF handling has improved these days - you likely don't actually need crumb data, and the error is a misnomer. You may actually need to go to <jenkins-server>/user/<your-user-name>/configure and add an API token. This token is then used as your password in the IDE configuration. See this comment

like image 185
Sean Avatar answered Sep 29 '22 20:09

Sean


This solution worked for me. Here are the steps:

  1. Generate an API token by going your Jenkins home page > your name in the top right corner click > Configure > "Add new token". Copy this token.
  2. In Intellij Settings > Tools > Jenkins Plugin, fill in server address and username. For password, put in the token copied in step 1 and leave the "crumb data" section empty.

Test connection should succeed now.

like image 44
mindreader Avatar answered Sep 29 '22 18:09

mindreader