jenkinsci / audit2db-plugin

Jenkins plugin to record build audit information to database.
https://plugins.jenkins.io/audit2db/
5 stars 24 forks source link

ORA-01400: cannot insert NULL into ("SCHEMA"."JENKINS_BUILD_NODE"."NAME") #9

Open evbruno opened 10 years ago

evbruno commented 10 years ago

Oracle treats empty strings as NULL, so it can't insert when running on "master node", throwing org.hibernate.exception.ConstraintViolationException.

Returning an empty string when on master is the behavior documented here http://javadoc.jenkins-ci.org/hudson/model/Slave.html#getNodeName()

I had to change the constraint for that, but I think displaying something like "(master)" would be nicer.

Thanks