File tree Expand file tree Collapse file tree
RadarrAPI/Release/AppVeyor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,8 +61,7 @@ protected override async Task DoFetchReleasesAsync()
6161 // - unsuccesful builds,
6262 // - tagged builds (duplicate).
6363 if ( build . PullRequestId . HasValue ||
64- build . IsTag ||
65- build . Status != "success" ) continue ;
64+ build . IsTag ) continue ;
6665
6766 var buildExtendedData = await _httpClient . GetStringAsync ( $ "https://ci.appveyor.com/api/projects/{ AccountName } /{ ProjectSlug } /build/{ build . Version } ") ;
6867 var buildExtended = JsonConvert . DeserializeObject < AppVeyorProjectLastBuild > ( buildExtendedData ) . Build ;
@@ -71,7 +70,7 @@ protected override async Task DoFetchReleasesAsync()
7170 var buildJob = buildExtended . Jobs . FirstOrDefault ( ) ;
7271 if ( buildJob == null ||
7372 buildJob . ArtifactsCount == 0 ||
74- buildJob . Status != "success" ||
73+ buildJob . FailedTestsCount >= 5 ||
7574 ! buildExtended . Started . HasValue ) continue ;
7675
7776 // Grab artifacts
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ public class AppVeyorJob
1111 [ JsonProperty ( "artifactsCount" , Required = Required . Always ) ]
1212 public int ArtifactsCount { get ; set ; }
1313
14+ [ JsonProperty ( "failedTestsCount" , Required = Required . Always ) ]
15+ public int FailedTestsCount { get ; set ; }
16+
1417 [ JsonProperty ( "status" , Required = Required . Always ) ]
1518 public string Status { get ; set ; }
1619
You can’t perform that action at this time.
0 commit comments