Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/build user vars plugin #164

Merged
merged 3 commits into from
Feb 18, 2020

Conversation

mvignesh12
Copy link
Contributor

@mvignesh12 mvignesh12 commented Jan 21, 2020

  • Fixed Post build query not updating the dashboard with expanded values of variables in additional columns set with build user vars plugin
  • Fixed Post-Build Update: WARN: Could not alter table env_dashboard to add column

Syncing latest changes from base repo
…s of variables in additional columns set with build user vars plugin
@@ -172,7 +180,7 @@ public void tearDown(Run<?, ?> build, FilePath workspace, Launcher launcher, Tas
context.setDisposer(new TearDownImpl());
}

@SuppressWarnings("rawtypes")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove this suppress?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added it back. I removed it during code modifications.

@@ -260,7 +273,7 @@ private String writeToDB(Run<?, ?> build, TaskListener listener, String envName,
stat.execute(runQuery);
} catch (SQLException e) {
returnComment = "Error running query " + runQuery + ".";
return returnComment;
return returnComment + e;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail, e is not a string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it to print the exact exception which I was getting during debugging. Removed it now.

@willwh
Copy link
Member

willwh commented Jan 21, 2020

Thanks very much for having a crack at this @mvignesh12 - just some nitpicks to get tidied up and I think we can merge this!

@mvignesh12
Copy link
Contributor Author

Thanks Will. I've updated the code based on your reviews. Please help in merging this PR and release the latest version.

@willwh
Copy link
Member

willwh commented Jan 24, 2020

@mvignesh12 great, thank you! I'd like to do a little testing this weekend, but I think this is looking good for a merge here. To be able to do another release of the plugin, we'd like to get this migrated over to the jenkinsci github team, which is blocking us releasing pipeline support. Hopefully @vipinsthename can assist in getting this migrated over soon :)

@willwh willwh merged commit a2b8be7 into jenkinsci:master Feb 18, 2020
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.

2 participants