Problem: Retrieving Perforce Changelist since last successful build

Hi there,

I run into a problem retrieving perforce change list since last successful build when the current build failed.

I'm using SBuildType's getModificationsSinceLastSuccessful() to retrieve this list. However, the problem that I encountered is this method always returns a empty list when two builds of the same type ARE running concurrently.

Is there any other way that I can retrieve this list ?

1 comment

Try this method:
build.getChanges(SelectPrevBuildPolicy.SINCE_LAST_SUCCESSFULLY_FINISHED_BUILD, false);

Where build is instance of your last failed build (SBuild)

--
Pavel Sher

0

Please sign in to leave a comment.