jenkinsci / jenkinsci/github-autostatus-plugin
Strange data in Influx DB
- Dominant language
- Java
- Stars
- 58
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
### Jenkins and plugins versions report
Same setup as in bug #122.
### What Operating System are you using (both controller, and any agents involved in the problem)?
Same setup as in bug #122.
### Reproduction steps
I have created two jobs in my Jenkins test-setup: One is a "full" Git repo setup in Jenkins as a multibranch pipeline. The other is a local pipeline setup in Jenkins with the build script added using the GUI - ie. no repo at all.
I'm submitting data to an Influx DB version 1.8 and try to make the Grafana dashboard work. It doesn't - hence I've been studying the content of the Influx DB in further details, and I'm confused.
### Expected Results
Logically organized data.
### Actual Results
Currently, my Influx DB holds the following data:
```
> select * from job
name: job
time blocked blockedtime branch jobname jobtime owner passed repo result
---- ------- ----------- ------ ------- ------- ----- ------ ---- ------
1653383449154728586 0 0 none Kilroy/master#19 2036 Kilroy 1 master CompletedSuccess
1653383767339308162 0 0 none A local pipeline#1 930 none 1 A local pipeline CompletedSuccess
1653387170484715649 0 0 none Kilroy/master#20 2132 Kilroy 1 master CompletedSuccess
1653393022302364278 0 0 none A local pipeline#2 882 none 1 A local pipeline CompletedSuccess
> select * from stage
name: stage
time branch jobname owner passed repo result stagename stagetime
---- ------ ------- ----- ------ ---- ------ --------- ---------
1653383448670929490 none Kilroy/master#19 Kilroy 1 master CompletedSuccess Greetings 100
1653383766948842735 none A local pipeline#1 none 1 A local pipeline CompletedSuccess Greetings 133
1653387169954575648 none Kilroy/master#20 Kilroy 1 master CompletedSuccess Greetings 213
1653393022018383508 none A local pipeline#2 none 1 A local pipeline CompletedSuccess Greetings 117
```
This doesn't make much sense to me?
"repo" contains the branch name in case of a multibranch pipeline - and the job name in case of a local job without repo.
"branch" is set to none even for the jobs where a proper branch exists.
"owner" is set to the repo name if it exists, none otherwise.
What am I missing?
### Anything else?
I would really want to see this plugin working as I believe it has a large potential.
Contributor guide
Assessment
This issue has not been assessed yet.