Issue Details (XML | Word | Printable)

Key: HUDSON-1810
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: redsolo
Reporter: redsolo
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hudson

Rule throws exception when open tasks is used for the first time

Created: 05/Jun/08 12:45 PM   Updated: 11/Jun/08 04:26 AM   Resolved: 11/Jun/08 04:26 AM
Component/s: ci-game
Affects Version/s: current
Fix Version/s: None

Environment: Platform: All, OS: Windows XP


 Description  « Hide

Added open tasks plugin to a job, and did a build:

[TASKS] Scanning workspace files for tasks...
[TASKS] No annotations have been found.
FATAL: There is no previous build for action hudson.plugins.tasks.TasksResultAction@82c23d
java.util.NoSuchElementException: There is no previous build for action hudson.plugins.tasks.TasksResultAction@82c23d
at hudson.plugins.tasks.TasksResultAction.getPreviousResultAction(TasksResultAction.java:74)
at hudson.plugins.cigame.rules.plugins.opentasks.DefaultOpenTasksRule.evaluate(DefaultOpenTasksRule.java:38)
at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:34)
at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:51)
at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:45)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:309)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:297)
at hudson.model.Build$RunnerImpl.cleanUp(Build.java:123)
at hudson.model.Run.run(Run.java:808)
at hudson.model.Build.run(Build.java:85)
at hudson.model.ResourceController.execute(ResourceController.java:70)
at hudson.model.Executor.run(Executor.java:82)



Sort Order: Ascending order - Click to sort in descending order
scm_issue_link added a comment - 11/Jun/08 04:26 AM

Code changed in hudson
User: : redsolo
Path:
trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/checkstyle/DefaultCheckstyleRule.java
trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/findbugs/FixedFindBugsWarningsRule.java
trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/findbugs/NewFindBugsWarningsRule.java
trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/opentasks/DefaultOpenTasksRule.java
trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/pmd/DefaultPmdRule.java
trunk/hudson/plugins/ci-game/src/main/java/hudson/plugins/cigame/rules/plugins/warnings/DefaultWarningsRule.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=10008
Log:
[FIXED HUDSON-1810] Warnings, FindBugs, PMD, Open tasks, Checkstyle rules no longer throws exception when it is used for the first time