jenkinsci / github-issues-plugin

Jenkins plugin to create GitHub issues for failing builds
https://plugins.jenkins.io/github-issues
MIT License
5 stars 6 forks source link

Receiving "WARNING: No GitHub config available for this job, GitHub Issue Notifier will not run! Error: GitHub property not configured" #11

Open ljmwaugh opened 6 years ago

ljmwaugh commented 6 years ago

I have tried to complete all the steps identified elsewhere but I'm still not successful.

Here is what I have configured:

In the freestyle job itself:

image

and

image

In Jenkins Configuration:

image

you can see that the credentials verified.

and here is the wtalp access token definition:

image

What did I miss?

Daniel15 commented 6 years ago

Hmmm, that is really strange. That error is only supposed to be thrown if there's no GitHub URL configured for the freestyle job:

https://github.com/jenkinsci/github-issues-plugin/blob/31dca10e324e6fbd0c7cab0b422b387263f32329/src/main/java/org/jenkinsci/plugins/githubissues/GitHubIssueNotifier.java#L100-L102

I wonder if something has changed in newer versions of the Jenkins GitHub plugin? It's working fine on my own server though.

What version of Jenkins are you using, and what version of the GitHub plugin is installed?

ljmwaugh commented 6 years ago

my Jenkins version is Jenkins 2.121.1and the plugin version is GitHub Issues Plugin https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Issues+Plugin This plugin creates GitHub issues when builds fail, and automatically closes the issue when the build starts passing again. 1.2.4 https://iot-watson-edu-jenkins.swg-devops.com/pluginManager/plugin/github-issues/thirdPartyLicenses thanks, Lisa

Lisa Waugh lisa.j.m.waugh@gmail.com

On Wed, Jul 25, 2018 at 2:16 PM Daniel Lo Nigro notifications@github.com wrote:

Hmmm, that is really strange. That error is only supposed to be thrown if there's no GitHub URL configured for the freestyle job:

https://github.com/jenkinsci/github-issues-plugin/blob/31dca10e324e6fbd0c7cab0b422b387263f32329/src/main/java/org/jenkinsci/plugins/githubissues/GitHubIssueNotifier.java#L100-L102

I wonder if something has changed in newer versions of the Jenkins GitHub plugin? It's working fine on my own server though.

What version of Jenkins are you using, and what version of the GitHub plugin is installed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jenkinsci/github-issues-plugin/issues/11#issuecomment-407847782, or mute the thread https://github.com/notifications/unsubscribe-auth/AWEjIop27cjd9oqMAbD8d5OZFMsnhdKWks5uKLX6gaJpZM4Ve2fs .

ljmwaugh commented 6 years ago

any update?

do you need any additional information?

ljmwaugh commented 5 years ago

any update on this? any idea how I can correct this?

Daniel15 commented 5 years ago

Sorry, I haven't had time to look into it. Unfortunately I don't have much free time for open source work these days 😕

There's a GitHub plugin too - What version of that (not the GitHub issues plugin, just the regular Github plugin) do you have?

lenisha commented 5 years ago

Have exactly same error for multistage Jenkins jobs. There is no actual Git hub property for this type of job - just Branch sources.

dilawar commented 5 years ago

I am stuck at exactly the same problem.

ganeshgk commented 4 years ago

Almost same issue!! I'm getting Could not connect to GitHub repository. Please double-check that you have correctly configured a GitHub API key. The test connection from the Global config works perfectly. Was somebody able to figure out a way out?

ganeshgk commented 4 years ago

@ljmwaugh In the issue repository box of the job, please provide the full path of the repo!! Eg: https://github.com/watson-education/ep-jmeter-tests.git I got the same error & was fixed with the full url. I will open another ticket for my issue.

Johnibur commented 4 years ago

Seems to be a config issue. Working for me with latest Jenkins and Github plugin.

You need to specify either a job repository under the Github Issues options or a Github Projects url under General settings for the job. Specifying only a repository under Source Control Management isn't enough.