Skip to content

Commit

Permalink
Merge pull request #4532 from Microsoft/users/jpricket/jenkins
Browse files Browse the repository at this point in the history
Fixing bug where JenkinsQueueJob task waits
  • Loading branch information
jpricket authored Jun 13, 2017
2 parents 4bdbf05 + c43897e commit 030c1b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Tasks/JenkinsQueueJob/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ export class Job {
}

setStreaming(executableNumber: number): void {
// If we aren't waiting for the job to finish then we should end it now
if (!this.queue.taskOptions.captureConsole) { // transition to Finishing
this.changeState(JobState.Streaming);
this.changeState(JobState.Finishing);
return;
}
if (this.state == JobState.New || this.state == JobState.Locating) {
this.executableNumber = executableNumber;
this.executableUrl = Util.addUrlSegment(this.taskUrl, this.executableNumber.toString());
Expand Down
2 changes: 1 addition & 1 deletion Tasks/JenkinsQueueJob/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 1,
"Minor": 119,
"Patch": 0
"Patch": 2
},
"groups": [
{
Expand Down
2 changes: 1 addition & 1 deletion Tasks/JenkinsQueueJob/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 1,
"Minor": 119,
"Patch": 0
"Patch": 2
},
"groups": [
{
Expand Down

0 comments on commit 030c1b9

Please sign in to comment.