jenkinsci / github-autostatus-plugin

Jenkins plugin to provide automatic status for multibranch jobs
https://plugins.jenkins.io/github-autostatus/
MIT License
52 stars 34 forks source link

"none" folder and job #81

Open mayaaravotwm opened 4 years ago

mayaaravotwm commented 4 years ago

hello, When I try to get a visible view on grafana, some things get a name and some are "none": image image

I would really like to have the names since i have same jobs names for different environments and the order is very important.

The log that is gets inside the db is: [httpd] - jenkins [25/Dec/2019:10:19:34 +0000] "POST /write?db=JENKINS HTTP/1.1" 204 0 "-" "Apache-HttpClient/4.5.10 (Java/1.8.0_212)" 0c6237c0-2700-11ea-b7df-0242ac110002 10269 This is the log for every job just with different numbers, and there is no log about the plugin in jenkins.

In addition, I'm using Jenkins Build Status grafana dashboard and i didn't change anything there, and I can't get the build number: image

I need it because I want to create a new graph that if a build keeps failing for 3 times in a row, I will get an alert.

Thanks in advance!

jeffpearce commented 4 years ago

Hi @mayaaravotwm. Do you know anything about how the jobs with missing names are configured? I'd expect the parent folder to be set to "none" if the jobs aren't configured through github, but I'd expect the job name to be set in that case, so I'm puzzled by that?

Do you know what type of jobs the ones with missing info are? Are they freestyle jobs?

mayaaravotwm commented 4 years ago

Hi @jeffpearce, thanks for the fast response! So I checked and the folders are only Data/QA and Data/Staging as it appears above the "none" folder in Grafana (please ignore the CI-CD folders because it's from another jenkins).. I saw that the job that's missing info are freestyle as you said. Is it why I have missing info in the folder, some of the jobs, and even the build number?

mayaaravotwm commented 4 years ago

The build number and the cause is missing also in the CI-CD jobs(which are pipelines and have names instead of "none").. Screen Shot 2019-12-26 at 17

jeffpearce commented 4 years ago

Freestyle support isn't very good at this point. I'll see what I can do about improving it.

mayaaravotwm commented 4 years ago

Ok thanks a lot! ☺️ And what about the missing build number and cause in pipeline jobs? Do you have an idea why it happens?

mayaaravotwm commented 4 years ago

Hey, any progress on this?

jeffpearce commented 4 years ago

I could start working on it soon. This is also probably a good issue for someone new to the code to pick up

imrahul361 commented 4 years ago

can i work on it? @jeffpearce

jeffpearce commented 4 years ago

That would be awesome. I haven't looked at it in detail, but I think you can start here. The code supporting freestyle jobs is basically a proof of concept, so the code isn't trying very hard :-) The task would be to figure out how to get the missing information from what's available. There's also the official Jenkins plugin guide Hopefully that's enough to get started.

mayaaravotwm commented 4 years ago

thanks @imrahul361 !

mayaaravotwm commented 4 years ago

hey, @jeffpearce If you have an idea about the missing build number and cause in pipeline jobs i would really like to know :) image

mohan236 commented 3 years ago

hello All, could you confirm , is this issue fixed. i m getting folder as "None" and build number as # still