|
|
@@ -169,6 +169,7 @@ public class JenkinsApiImpl implements JenkinsApi {
|
|
|
BuildWithDetails buildWithDetails = jenkinsInternalApi.getBuildDetails(build);
|
|
|
|
|
|
while (waitFinished && (buildWithDetails.getResult() == null || buildWithDetails.getDuration() == 0)) {
|
|
|
+ logger.info("waiting for build finished: "+jobName);
|
|
|
try {
|
|
|
Thread.sleep(500);
|
|
|
} catch (InterruptedException e) {
|
|
|
@@ -176,6 +177,7 @@ public class JenkinsApiImpl implements JenkinsApi {
|
|
|
}
|
|
|
buildWithDetails = jenkinsInternalApi.getBuildDetails(build);
|
|
|
}
|
|
|
+ logger.info("got buildWithDetails successfully: "+jobName);
|
|
|
return buildWithDetails;
|
|
|
} catch (IOException e) {
|
|
|
logger.error("getBuildDetails exception={}, jobName={}, buildId={}, waitFinished={}", e, jobName, buildId, waitFinished);
|