tabeyti / jenkins-jack

Jack into your Jenkins to execute Pipeline scripts, provide Pipeline step autocompletions, pull Shared Library step documenation, run console groovy scripts across multiple nodes, and more! Honestly, not that much more.
Other
97 stars 32 forks source link

Can't execute and update jobs #38

Closed leonshklyar closed 3 years ago

leonshklyar commented 3 years ago

I'm running jenkins in docker (using mac os) version 2.249, I can see my jobs and even link scrip to a job. Job update/execution fails with message : "Error running command extension.jenkins-jack.pipeline.execute: jenkins: job.config: forbidden. This is likely caused by the extension that contributes extension.jenkins-jack.pipeline.execute."

Looks like this is due to Jenkins improvement of the CSRF protection feature

leonshklyar commented 3 years ago

Jenkins 2.222.1 :

Always enabled CSRF Protection Jenkins will automatically enable CSRF protection with the default crumb issuer if it was disabled before. The ability to not have CSRF protection enabled has been deprecated and removed from the UI.

API clients should authenticate using API tokens, which doesn’t require CSRF crumbs since 2.96.

tabeyti commented 3 years ago

Hey @leonshklyar ,

This should now be fixed in 1.1.1. If you could update the extension and validate for me, I'd appreciate it.