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

[FIXED JENKINS-40113] sematic-versioning-plugin causes dashboard to biff #8

Merged
merged 1 commit into from
Jan 16, 2017

Conversation

stephenc
Copy link
Member

@stephenc stephenc commented Jan 6, 2017

See JENKINS-40113

@reviewbybees

@jglick
Copy link
Member

jglick commented Jan 6, 2017

Relation to jenkinsci/jenkins#2459?

Copy link
Member

@jglick jglick left a comment

Choose a reason for hiding this comment

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

Did you actually reproduce the bug and confirm the fix, or are you just guessing here? What is the root cause—is there an incompatible change in core?

@@ -83,7 +83,7 @@ public SemanticVersionColumnDescriptor() {

@Override
public ListViewColumn newInstance(StaplerRequest req, JSONObject formData) throws FormException {
String strategy = formData == null ? LastSuccessfulBuildStrategy.class.getCanonicalName() : formData.getString("displayStrategy");
String strategy = formData == null ? LastSuccessfulBuildStrategy.class.getCanonicalName() : formData.optString("displayStrategy");
Copy link
Member

Choose a reason for hiding this comment

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

I think you meant

String strategy = formData == null ? null : formData.optString("displayStrategy");
if (strategy == null) {
    strategy = LastSuccessfulBuildStrategy.class.getCanonicalName();
}

@Dohbedoh
Copy link
Contributor

Dohbedoh commented Jan 9, 2017

@jglick Root cause seems to be this change jenkinsci/jenkins@8c73550

@stephenc
Copy link
Member Author

stephenc commented Jan 9, 2017

@jglick ping

@Dohbedoh
Copy link
Contributor

🐝

@ghost
Copy link

ghost commented Jan 11, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

@stephenc
Copy link
Member Author

@reviewbybees done

@ciroque ciroque merged commit 1cd9ac0 into master Jan 16, 2017
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.

4 participants