File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace Torch.API.WebAPI
1313{
1414 public class JenkinsQuery
1515 {
16- private const string BRANCH_QUERY = "https ://build.torchapi.net/job/Torch /job/Torch/job/{0}/" + API_PATH ;
16+ private const string BRANCH_QUERY = "http ://136.243.80.164:2690 /job/Torch/job/{0}/" + API_PATH ;
1717 private const string ARTIFACT_PATH = "artifact/bin/torch-server.zip" ;
1818 private const string API_PATH = "api/json" ;
1919
@@ -33,7 +33,7 @@ public async Task<Job> GetLatestVersion(string branch)
3333 var h = await _client . GetAsync ( string . Format ( BRANCH_QUERY , branch ) ) ;
3434 if ( ! h . IsSuccessStatusCode )
3535 {
36- Log . Error ( $ "Branch query failed with code { h . StatusCode } ") ;
36+ Log . Error ( $ "' { branch } ' Branch query failed with code { h . StatusCode } ") ;
3737 if ( h . StatusCode == HttpStatusCode . NotFound )
3838 Log . Error ( "This likely means you're trying to update a branch that is not public on Jenkins. Sorry :(" ) ;
3939 return null ;
You can’t perform that action at this time.
0 commit comments