Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

[Need Help Faster] Getting error in Jenkins-Hygieia Collector #3485

Open
Sumanth1919 opened this issue Apr 25, 2023 · 0 comments
Open

[Need Help Faster] Getting error in Jenkins-Hygieia Collector #3485

Sumanth1919 opened this issue Apr 25, 2023 · 0 comments

Comments

@Sumanth1919
Copy link

Sumanth1919 commented Apr 25, 2023

I running the following command in my target folder -- java -jar jenkins-build-collector-3.0.2-SNAPSHOT.jar --spring.config.name=jenkins --spring.config.location=C:.....\Application-jenkins.properties server.port=7777

My Application-jenkins.properties looks like -

Database Name

dbname=dashboarddb

Database HostName - default is localhost

dbhost=localhost

Database Port - default is 27017

dbport=27017

MongoDB replicaset

dbreplicaset=false
dbhostport=localhost:27017

Database Username - default is blank

dbusername=dashboarduser

Database Password - default is blank

dbpassword=dbpassword

Collector schedule (required)

jenkins.cron=0 0/5 * * * *

The page size

jenkins.pageSize=1000

The folder depth - default is 10

jenkins.folderDepth=10

Jenkins server (required) - Can provide multiple

jenkins.servers[0]=http://localhost:8081

If using username/token for API authentication

(required for Cloudbees Jenkins Ops Center) For example,

jenkins.servers[1]=http://admin:APITOKEN@localhost:8081

Another option: If using same username/password Jenkins auth,

set username/apiKey to use HTTP Basic Auth (blank=no auth)

jenkins.usernames[0]=admin
jenkins.apiKeys[0]=APITOKEN

Determines if build console log is collected - defaults to false

jenkins.saveLog=true

Search criteria enabled via properties (max search criteria = 2)

jenkins.searchFields[0]= DEmo12
jenkins.searchFields[1]= demo

Timeout values

jenkins.connectTimeout=20000
jenkins.readTimeout=20000

API.Properties

dbname=dashboarddb
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
dbreplicaset=false
dbhostport=localhost:27017
server.contextPath=/api
server.port=8080
logRequest=false
logSplunkRequest=false
corsEnabled=false

Error :
2023-04-25 21:00:04,246 [taskScheduler-1] ERROR c.c.d.collector.DefaultHudsonClient - Client exception loading build details: 404 Not Found. URL =http://localhost:8080/job/DEmo12/1/
2023-04-25 21:00:04,251 [taskScheduler-1] ERROR c.c.d.collector.DefaultHudsonClient - Client exception loading build details: 404 Not Found. URL =http://localhost:8080/job/DEmo12/2/
2023-04-25 21:00:04,257 [taskScheduler-1] ERROR c.c.d.collector.DefaultHudsonClient - Client exception loading build details: 404 Not Found. URL =http://localhost:8080/job/DEmo12/3/

Anyone help on these ASAP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants