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

not working: job execute , pipeline update #39

Open DobriyDed opened 3 years ago

DobriyDed commented 3 years ago

Hi! i'm using Visual Studio Code Remote SSH extension to access from my windows pc to debian host#1, where all pipelines stored and synchronized with github. Can see my jenkins master (located at another host, #2, in VM) . All pipelines are visible, all jobs and nodes are visible)

5 problems:

pipeline-name-here Error: jenkins: job.disable: failed to disable: Harder-then-site

Sorry for this mess. Looks like some permissions are missing , but out of ideas User for Jenkins Jack to connect with Jenkins are admin with all permissions

aba77-clip-91kb

DobriyDed commented 3 years ago

vscode 1.50.1 Jenkins 2.249.2 Jenkins Jack 1.1.0

leonshklyar commented 3 years ago

Looks same as mine #38, seems it is caused by the CSRF protection feature in Jenkins

tabeyti commented 3 years ago

Potential duplicate of #38. Leaving open until milestone 1.1.1 is release and fix can be validated.

tabeyti commented 3 years ago

Hey @DobriyDed ,

If this is the CSRF protection issue, this should be fixed in 1.1.1. If you could validate the fix for me, I'd appreciate it.

DobriyDed commented 3 years ago

@tabeyti Hi! Looks like main problem solved, can run tasks now

BUT if i try to pull job script from \SA\70.DockerTask or \SA\60.Jenkins_03 error occurs "Error running command extension.jenkins-jack.tree.pipeline.pullJobScript: jenkins: job.config: job 70.DockerTask not found. This is likely caused by the extension that contributes extension.jenkins-jack.tree.pipeline.pullJobScript."

Possibly, it caused by "." in path

Thanks for your hard work !

tabeyti commented 3 years ago

Awesome @DobriyDed!

That other issue is a bug introduced in 1.1.1 that I have a fix for in 1.1.2. Will try to get that out today. Once it's out, I'll reply to this thread for you to validate.

tabeyti commented 3 years ago

@DobriyDed , fix should be in 1.1.2. Please validate when you get a chance.

ViciousNaru commented 3 years ago

Hi, @tabeyti , Tried execute/update declarative pipeline on 1.1.2, still having:

Error running command extension.jenkins-jack.pipeline.execute: Running the contributed command: 'extension.jenkins-jack.pipeline.execute' failed.. This is likely caused by the extension that contributes extension.jenkins-jack.pipeline.execute.

maybe there is a way to set Authentication Token for remote job execution ? Thank you!