Add a Retry to the Bitbucket e2e test (#1718)

Thanks guys. I think V2 of this effort will be to figure out why it's failing occaionally-but-not-always. I'd like to at least make the selector that saveBranch() is looking for. It's been on my list of ones to fix up for a while now, and since saveBranch() is used all over the place, probably a good time.
This commit is contained in:
Karl Shultz 2018-04-17 18:11:31 -04:00 committed by GitHub
parent a51c0e01ac
commit fdcc18f3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import io.blueocean.ath.ATHJUnitRunner;
import io.blueocean.ath.BaseUrl;
import io.blueocean.ath.CustomJenkinsServer;
import io.blueocean.ath.Login;
import io.blueocean.ath.Retry;
import io.blueocean.ath.WaitUtil;
import io.blueocean.ath.WebDriverMixin;
import io.blueocean.ath.api.classic.ClassicJobApi;
@ -66,6 +67,7 @@ public class BitbucketServerTest implements WebDriverMixin {
}
@Test
@Retry(3)
public void testCreationNoJenkinsfile() throws InterruptedException {
BitbucketClient client = BitbucketClient.builder()
.endPoint(ENDPOINT_URL)