From af60808e9d4c7db14822b4eebf813d616ffbc30d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 16 Nov 2017 01:20:58 +0100 Subject: find_and_track_build_and_update_status(): Fix final GitHub call I had mistakenly (stupidly) used the wrong `job` variable. Duh, that's why it was sending a "pending" status when the job was finished! Use the correct variable, `updated_job`, to update the correct GitHub status. --- src/jenkins.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jenkins.rs b/src/jenkins.rs index d61e7d0..5c43cd9 100644 --- a/src/jenkins.rs +++ b/src/jenkins.rs @@ -200,7 +200,7 @@ pub fn find_and_track_build_and_update_status( github::update_commit_status( &github_token, &commit_ref, - &job.result.commit_status(), + &updated_job.result.commit_status(), job_url.clone(), None, "continuous-integration/jenkins".to_owned() -- cgit v1.2.3