janjoerke / vscode-jenkins-pipeline-linter-connector

MIT License
60 stars 21 forks source link

Error using https #2

Closed FROSADO closed 6 years ago

FROSADO commented 6 years ago

If the Jenkins server is running using https, the plugin is unable to validate the code.

setting Example: "jenkins.pipeline.linter.connector.crumbUrl": "https://jenkins.domain.server/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,%22:%22,//crumb)", "jenkins.pipeline.linter.connector.url": "https://jenkins.domain.server/pipeline-model-converter/validate",

Error: unable to verify the first certificate

FROSADO commented 6 years ago

OK, it is aproblem related with VS Code. Solved setting this environment variable NODE_TLS_REJECT_UNAUTHORIZED=0

FROSADO commented 6 years ago

NODE_TLS_REJECT_UNAUTHORIZED=0

kennywuu commented 5 years ago

Hi, Where can we set the "NODE_TLS_REJECT_UNAUTHORIZED=0", I cannot find out it in VS Code