Skip to content

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

@evbruno

Description

@evbruno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions