diff --git a/.circleci/config.yml b/.circleci/config.yml index 4d681a902..54171256a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,7 @@ jobs: name: "Create and start all services from the docker-compose configuration" command: | cp example/src/main/resources/application.properties.example ./example/src/main/resources/application.properties - mkdir jacocoJars + mkdir -p jacocoJars curl -L -o ./jacocoJars/jacocoagent.jar "https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar" curl -L -o ./jacocoJars/jacococli.jar "https://repo1.maven.org/maven2/org/jacoco/org.jacoco.cli/0.8.7/org.jacoco.cli-0.8.7-nodeps.jar" docker-compose up --build -d @@ -60,7 +60,8 @@ jobs: executor: openjdk_executor working_directory: /home/circleci/mms steps: - - checkout + - attach_workspace: + at: ~/ - run: name: Build classes to scan command: | diff --git a/Dockerfile b/Dockerfile index 7ad2000ae..d7fdacdfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,5 @@ RUN ./gradlew --no-daemon bootJar --warning-mode all RUN find . -type f -name example-*.jar -not -iname '*javadoc*' -not -iname '*sources*' -exec cp '{}' '/app.jar' ';' ENV JDK_JAVA_OPTIONS "-XX:MaxRAMPercentage=90.0" -COPY jacocoJars/jacocoagent.jar ./jacocoagent.jar ENTRYPOINT ["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-javaagent:jacocoJars/jacocoagent.jar=destfile=jacocoOutput/jacoco-it.exec,output=file", "-jar", "/app.jar"] EXPOSE 8080