janjoerke / vscode-jenkins-pipeline-linter-connector

MIT License
60 stars 21 forks source link

Settings question #12

Closed DavidA2014 closed 5 years ago

DavidA2014 commented 5 years ago

Hi, I have installed v.1.1.7 of the plugin, using VS Code 1.32.3. When I attempt to set the settings I get:

Unable to write to User Settings because jenkins.pipeline.linter.connector.url is not a registered configuration.

Any idea why this might be?

What are the minimum settings required for this plugin?

janjoerke commented 5 years ago

Hi, right now i have no clue. I am also using VS Code 1.32.3 and 1.1.7 without any problems.

Please compare your settings with the one below. This should work.

{
    "jenkins.pipeline.linter.connector.url": "http://<your_server>:<port>/pipeline-model-converter/validate"
}
DavidA2014 commented 5 years ago

Thanks, that almost works. With "jenkins.pipeline.linter.connector.url" specified (and no other urls) I see error:

Error: unable to verify the first certificate

Our internal servers use certificates. Do you know how I can satisfy the certificate requirement in VS Code and this extension?

janjoerke commented 5 years ago

For me, it is very difficult to debug a foreign system, because of access and time constraints.

You can try: "jenkins.pipeline.linter.connector.strictssl": false Maybe this helps.

If not, you could try to find a solution by yourself by forking the project and issue a merge request if you succeed.

DavidA2014 commented 5 years ago

Thank you, setting strictssl to false worked around the problem.

Please will you explain the purpose of the crumb url?

janjoerke commented 5 years ago

That is a feature protecting against CSRF.

Basically, you call your server once, to request a crumb and then use this crumb to verify subsequent requests.

DavidA2014 commented 5 years ago

Thanks for your help. It is working nicely now.

kennywuu commented 5 years ago

Hi, I meet the same problem, "Error: unable to verify the first certificate"

setting strictssl to false, does not work for me. do you have any suggetions ?

Thanks!