File tree 1 file changed +10
-10
lines changed
java/main/src/main/java/com/saucelabs/saucebindings
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ public abstract class CITools {
36
36
"Travis" , ImmutableList .of ("TRAVIS_JOB_NAME" , "TRAVIS_JOB_NUMBER" ));
37
37
38
38
private static void storeBuildInfo () {
39
- if (buildInfoStored ) {
40
- return ;
41
- }
42
-
43
- for ( Map . Entry < String , String > tool : KNOWN_TOOLS . entrySet ()) {
44
- if (SystemManager . get ( tool . getValue ()) != null ) {
45
- buildName = BUILD_VALUES . get ( tool . getKey ()). get ( 0 ) ;
46
- buildNumber = BUILD_VALUES . get ( tool . getKey ()). get ( 1 ) ;
47
- buildInfoStored = true ;
48
- break ;
39
+ if (! buildInfoStored ) {
40
+ for ( Map . Entry < String , String > tool : KNOWN_TOOLS . entrySet ()) {
41
+ if ( SystemManager . get ( tool . getValue ()) != null ) {
42
+ buildName = SystemManager . get ( BUILD_VALUES . get ( tool . getKey ()). get ( 0 ));
43
+ buildNumber = SystemManager . get ( BUILD_VALUES . get ( tool . getKey ()). get ( 1 ));
44
+ if (buildName != null && buildNumber != null ) {
45
+ buildInfoStored = true ;
46
+ break ;
47
+ }
48
+ }
49
49
}
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments