- ./private/cirrus/cirrus-qa.sh postgres
<<: *DEFAULT_ARTIFACTS_TEMPLATE
+qa_java11_task:
+ <<: *DEFAULT_TEMPLATE
+ <<: *BUILD_DEPENDANT_TASK_TEMPLATE
+ <<: *GRADLE_CACHE_TEMPLATE
+ <<: *JAR_CACHE_TEMPLATE
+ gke_container:
+ dockerfile: private/docker/Dockerfile-build-java11
+ builder_image_project: sonarqube-team
+ builder_image_name: family/docker-builder
+ cluster_name: cirrus-ci-cluster
+ zone: us-central1-a
+ namespace: default
+ cpu: 2
+ memory: 6Gb
+ additional_containers:
+ - <<: *POSTGRES_ADDITIONAL_CONTAINER_TEMPLATE
+ env:
+ matrix:
+ - QA_CATEGORY: Cat1
+ - QA_CATEGORY: CommunityEditionWithPlugins
+ - QA_CATEGORY: ComputeEngine
+ - QA_CATEGORY: Upgrade
+ script:
+ - ./private/cirrus/cirrus-qa.sh postgres
+ <<: *DEFAULT_ARTIFACTS_TEMPLATE
+
task: #bitbucket
<<: *DEFAULT_TEMPLATE
<<: *BUILD_DEPENDANT_TASK_TEMPLATE
// do not deploy to Artifactory by default
artifactoryPublish.skip = true
+ // Produce Java 11 bytecode while making sure the code does not use any APIs from Java 17
+ compileJava.options.release = 11
+
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.ArgumentMatchers.eq;
+import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
"-Des.distribution.type=tar");
verify(process.getOutputStream()).write(argThat(new ArrayContainsMatcher("value1\nvalue2\nvalue3\n")), eq(0), eq(21));
- verify(process.getOutputStream()).flush();
+ verify(process.getOutputStream(), atLeastOnce()).flush();
verify(process.getMock()).waitFor(1L, TimeUnit.MINUTES);
}