dave-hagedorn / jenkins-runner

VS Code plugin to develop and run Jenkins Pipeline scripts
MIT License
30 stars 8 forks source link

Plugins hangs at "Creating Jenkins instance" #30

Open mfasman95 opened 4 years ago

mfasman95 commented 4 years ago

Hello. After watching a co-worker use this plugin I was really impressed by it and tried to copy their configuration to get things set up - it looks like this plugin will greatly improve my workflow. Unfortunately, after selecting the job to run, it seems to hang on the first step without progressing to any future steps. Do you have any idea what I could be doing wrong?

Output in the debug log:

[2020-06-17 16:54:47.140] [Jenkins] [info] Creating Jenkins instance @url=<redacted but I know this URL is valid>, with user=mfasman, password=****

Config:

{
  "jenkins-runner.hostConfigs": {
    "cat-jenkins": {
      "url": "<redacted but I know this URL is valid>",
      "user": "mfasman",
      "useCrumbIssuer": false
    }
  },
  "jenkins-runner.jobs": {
    "mfasman-test": {
      "isDefault": true,
      "runWith": "cat-jenkins",
      "name": "mfasman-test"
    }
  }
}
tahaiqbalkhan9 commented 3 years ago

I have the same issue, any clues on what might be causing this?

UPDATE I just updated my url and removed a leading "/" from the url and it worked.

sudarsesh commented 3 years ago

@tahaiqbalkhan9 thanks and this helped in giving further useful error messages to debug. I had my job inside several folders within in a view. I had to refer the "http://.../Sudarshan-jobs/job/my-first-pipeline/api/json?pretty=true" and the attribute "fullName" to mention in the settings.json as job name