Skip to content

fix(jenkins): expand primary_view column to text#8902

Open
bujjibabukatta wants to merge 2 commits into
apache:mainfrom
bujjibabukatta:fix-8897-clean
Open

fix(jenkins): expand primary_view column to text#8902
bujjibabukatta wants to merge 2 commits into
apache:mainfrom
bujjibabukatta:fix-8897-clean

Conversation

@bujjibabukatta
Copy link
Copy Markdown
Contributor

Fixes #8897

Summary

The Jenkins connector can fail during data collection when the generated primary_view value exceeds the current column size limit.

This change:

  • Updates PrimaryView from varchar(255) to text.
  • Adds a migration to update the _tool_jenkins_jobs.primary_view column for existing installations.
  • Registers the migration.

Problem

For Jenkins instances with deeply nested folders and long job paths, the generated primary_view value can exceed 255 characters, resulting in:

Error 1406 (22001): Data too long for column 'primary_view'

This causes Jenkins data collection to fail.

Solution

Use a text column for primary_view and provide a migration so existing installations are updated automatically.

@bujjibabukatta
Copy link
Copy Markdown
Contributor Author

Hi, @klesh @Startrekzky

Could you please review and approve the pull request?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Jenkins Connector] Data Collection Fails with data too long error for primary_view column

1 participant