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

[JENKINS-26718] OldDataMonitor: Handle poorly written project types #1557

Merged
merged 1 commit into from Feb 2, 2015

Conversation

recampbell
Copy link
Member

JENKINS-26718

Allow runs to be discarded even if their project can't be found by its fullname, such as Promotions in promoted builds

@recampbell
Copy link
Member Author

Ping @reviewbybees for CloudBees internal review process
Also, @daniel-beck re: ZD-22388


assertEquals(Collections.singleton(build), odm.getData().keySet());
odm.doDiscard(null, null);
assertEquals(0, odm.getData().keySet().size());
Copy link
Member

Choose a reason for hiding this comment

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

Alternately, a bit nicer in case it ever fails:

assertEquals(Collections.emptySet(), odm.getData().keySet());

@jglick
Copy link
Member

jglick commented Feb 2, 2015

👍

@tfennelly
Copy link
Member

👍

@daniel-beck
Copy link
Member

Seems to work on a test instance, promotions are correctly shown in Manage Old Data, and discarded.

Screen shot

recampbell added a commit that referenced this pull request Feb 2, 2015
[JENKINS-26718] OldDataMonitor: Handle poorly written project types
@recampbell recampbell merged commit d6d96e1 into jenkinsci:master Feb 2, 2015
@jglick
Copy link
Member

jglick commented Feb 3, 2015

@recampbell when merging a fix you need to also update changelog.html. Also do not forgot to resolve the issue, which is still shown as open.

@daniel-beck
Copy link
Member

Also do not forgot to resolve the issue, which is still shown as open.

Or have the bot do it:
https://wiki.jenkins-ci.org/display/JENKINS/contributing#contributing-CommitMessages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants