Skip to content

[Bug][Jenkins] FullName,FullDisplayName and JobPath are too long to insert into db #4053

Description

@mappjzc

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

A user triggered the error as follows:
subtask extractApiBuilds ended unexpectedly caused by: error adding the result to batch caused by: Error 1406: Data too long for column 'full_display_name' at row 138
8483dd7a-4b7f-4c17-9279-b0f1867b06a1
As we see in the code, full_display_name has come from Jenkins API. and it limits by 255 in the tool layer.
ea7b6b02-ed5b-4bcd-8a09-35d84f66ffc6
in the domain layer. it will convert to the CICD name and limit by 255.
c34fe7ae-6a33-45d8-86e0-f98dcb887e82

Since fullname and jobpath have a high probability of being too long when FullDisplayName is too long, the above fields may also have the same problem and need to be dealt with.

What do you expect to happen

Jenkins can get data success.

How to reproduce

With a very deep and long path to save Jenkins jobs.

Anything else

No response

Version

main

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/bugThis issue is a bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions