-
Notifications
You must be signed in to change notification settings - Fork 8
BeanCreationException while launching the jenkins-codequality-3.1.0-SNAPSHOT.jar #5
Comments
@sunabala Can you add bigger screenshots. I am unable to see the error. |
@rvema I have uploaded the bigger screenshots. Please let me know if these are visible. |
@sunabala looks like its unable to locate the properties file. Can you give full path to properties file while launching the collector |
@rvema, I had provided the complete path to properties file while launching the collector... Still the issue exists. |
On further debugging, found that this.settings.getCron() call in public String getCron() method of JenkinsCodeQualityCollectorTask.java is null. What needs to be done for this to work? |
the cron property is not properly formed or the property file is unable to be read. Can you check if other properties mentioned in the application.properties are read? |
Yes it is reading the application.properties file. It is able to establish the connection with MONGO DB based on the DB credentials provided in the properties file. Database Namedbname=dashboarddb Database HostName - default is localhostdbhost=localhost Database Port - default is 27017dbport=27017 MongoDB replicasetdbreplicaset=false Database Username - default is blankdbusername=dashboarduser Database Password - default is blankdbpassword=dbpassword Collector schedule (required)jenkins-codequality.cron=0 0/1 * * * * Collector servers (required) - can be multiplejenkins.servers[0]=https://jenkins.company.com Collector types (note not required, but the regex should be match only the type specified)jenkins-codequality.artifactRegex.junit=TEST-.*\.xml Collector job depth (required) should be set to at least 1, and more if you use folder jobs etcjenkins-codequality.jobDepth=4 |
application.properties.txt
Hi,
I built hygieia-codequality-jenkins-collector and deployed using the below command:
java -jar jenkins-codequality-3.1.0-SNAPSHOT.jar --spring.config.name=jenkins-codequality --spring.config.location=..\application.properties
I am getting the BeanCreationException. Attached is my application.properties file and the error message. Please help.
Thanks,
Sunandha Ramasamy
The text was updated successfully, but these errors were encountered: