diff options
author | Teddy Wing | 2017-11-12 17:47:32 +0100 |
---|---|---|
committer | Teddy Wing | 2017-11-12 17:47:32 +0100 |
commit | 42647c89062168851438f861bb84c7f6e14440f5 (patch) | |
tree | b2af603102b81cfee6a21cc10e90c0cc85b46891 /src/main.rs | |
parent | 0f13ad70e2f0be72b19e44fed5b3bfef48d56879 (diff) | |
download | kipper-42647c89062168851438f861bb84c7f6e14440f5.tar.bz2 |
find_and_track_build_and_update_status(): Pass in configuration
Pass logins & tokens for API communication into this function. Since
this is the entry point into everything else, it seemed to make sense to
have it be the thing that took the config.
Ended up not making a Config struct to be simple. I guess.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 98bd5e5..b03b963 100644 --- a/src/main.rs +++ b/src/main.rs @@ -103,7 +103,13 @@ fn main() { Err(_) => return internal_server_error(), }; - match jenkins::find_and_track_build_and_update_status(commit_ref) { + match jenkins::find_and_track_build_and_update_status( + commit_ref, + &jenkins_url, + &jenkins_user_id, + &jenkins_token, + &github_token, + ) { Ok(_) => {}, Err(_) => return internal_server_error(), }; |