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
98 stars 31 forks source link

Not working with Dev Containers #96

Open hsilm opened 8 months ago

hsilm commented 8 months ago

I am developing remotely with a Dev Container and accordingly the extension runs there see here.

But when I try to add a connection, I get the following error:

Error running command extension.jenkins-jack.connections.add: command 'extension.jenkins-jack.connections.add' not found. This is likely caused by the extension that contributes extension.jenkins-jack.connections.add.

hanc2006 commented 7 months ago

I have the same error on my MacOS

`Visual Studio Code - Insiders

Version: 1.85.0-insider Commit: ef71b038ad2518e32514b6cc3a4df9f94c096e65 Date: 2023-11-23T05:37:30.445Z (15 hrs ago) Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Code-Insiders/1.85.0 -insider Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36`

IreshMM commented 4 months ago

@hanc2006 I was able to make the extension work in a devcontainer. There were two problems, 1. Extension that is available on the marketplace doesn't seem to work on Linux, therefore need to be rebuilt for Linux. 2. There should be a keyring inside the container environment to store the passwords. For 2, what I did was hard-code the password in source code (solely because I was in a hurry) so a keyring doesn't have to be used though I strongly recommend not to do that.