Skip to content

Commit

Permalink
[FIXED JENKINS-15043] 'status' field in perforce job descriptions is …
Browse files Browse the repository at this point in the history
…now optional
  • Loading branch information
Rob Petti committed Sep 5, 2012
1 parent bc16080 commit 0e5b7c4
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -120,6 +120,8 @@ public Changelist build(StringBuilder sb) throws PerforceException {
// EXT-84 on 2007/09/25 *closed*
// or
// EXT-84 on 2007/09/25
// or
// EXT-84 on 2007/09/25 by mwille
StringTokenizer details = new StringTokenizer(line);
job = new Changelist.JobEntry();
job.setJob(details.nextToken());
Expand All @@ -133,7 +135,8 @@ public Changelist build(StringBuilder sb) throws PerforceException {
if ("by".equals(possibleUser))
{
details.nextToken(); // user
status = details.nextToken(); // status
if (details.hasMoreTokens()) //status is optional
status = details.nextToken(); // status
}
else
{
Expand Down

0 comments on commit 0e5b7c4

Please sign in to comment.