diff --git a/.harness/Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set-1703139166958.yaml b/.harness/Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set-1703139166958.yaml new file mode 100644 index 0000000..9357f9b --- /dev/null +++ b/.harness/Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set-1703139166958.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set + identifier: Build_sahithibanda01_gradle_scoverage_1703139166056prtriggerinputset + orgIdentifier: default + projectIdentifier: autogen + pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703139166056 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set-1703139167967.yaml b/.harness/Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set-1703139167967.yaml new file mode 100644 index 0000000..1a18d0c --- /dev/null +++ b/.harness/Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set-1703139167967.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set + identifier: Build_sahithibanda01_gradle_scoverage_1703139166056pushtriggerinputset + orgIdentifier: default + projectIdentifier: autogen + pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703139166056 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set-1703140174577.yaml b/.harness/Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set-1703140174577.yaml new file mode 100644 index 0000000..68671ef --- /dev/null +++ b/.harness/Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set-1703140174577.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set + identifier: Build_sahithibanda01_gradle_scoverage_1703140173662prtriggerinputset + orgIdentifier: default + projectIdentifier: autogen + pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703140173662 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set-1703140175598.yaml b/.harness/Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set-1703140175598.yaml new file mode 100644 index 0000000..a477922 --- /dev/null +++ b/.harness/Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set-1703140175598.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set + identifier: Build_sahithibanda01_gradle_scoverage_1703140173662pushtriggerinputset + orgIdentifier: default + projectIdentifier: autogen + pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703140173662 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set-1703140440089.yaml b/.harness/Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set-1703140440089.yaml new file mode 100644 index 0000000..17c20a1 --- /dev/null +++ b/.harness/Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set-1703140440089.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set + identifier: Build_sahithibanda01_gradle_scoverage_1703140439227prtriggerinputset + orgIdentifier: default + projectIdentifier: autogen + pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703140439227 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set-1703140441159.yaml b/.harness/Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set-1703140441159.yaml new file mode 100644 index 0000000..3d10dbc --- /dev/null +++ b/.harness/Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set-1703140441159.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set + identifier: Build_sahithibanda01_gradle_scoverage_1703140439227pushtriggerinputset + orgIdentifier: default + projectIdentifier: autogen + pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703140439227 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/pipelines/gradle-scoverage-1703139162983.yaml b/.harness/pipelines/gradle-scoverage-1703139162983.yaml new file mode 100644 index 0000000..5001f08 --- /dev/null +++ b/.harness/pipelines/gradle-scoverage-1703139162983.yaml @@ -0,0 +1,53 @@ +pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703139166056 + name: Build gradle-scoverage + orgIdentifier: default + projectIdentifier: autogen + properties: + ci: + codebase: + build: <+input> + connectorRef: account.SahithiConnector + repoName: sahithibanda01/gradle-scoverage + stages: + - stage: + identifier: build + name: build + spec: + cloneCodebase: true + execution: + steps: + - step: + identifier: dockerbuild + name: docker_build + spec: + image: plugins/docker + settings: + dry_run: "true" + password: <+input> + repo: hello/world + tags: latest + username: <+input> + timeout: "" + type: Plugin + - step: + identifier: scalabuild + name: scala_build + spec: + command: "gradle build " + timeout: "" + type: Run + - step: + identifier: scalatest + name: scala_test + spec: + command: "./gradlew test\n\t\txml_file=$(find /harness/build/test-results/test -type f -name \"*.xml\" | head -n 1)\n\n\t\tif [ -n \"$xml_file\" ]; then\n\t\t\tcp \"$xml_file\" /harness/reports.xml\n\t\t\techo \"XML file copied to /harness/reports.xml\"\n\t\telse\n\t\t\techo \"No XML file found in /path\"\n\t\tfi" + timeout: "" + type: Run + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI diff --git a/.harness/pipelines/gradle-scoverage-1703140170385.yaml b/.harness/pipelines/gradle-scoverage-1703140170385.yaml new file mode 100644 index 0000000..30f2a81 --- /dev/null +++ b/.harness/pipelines/gradle-scoverage-1703140170385.yaml @@ -0,0 +1,53 @@ +pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703140173662 + name: Build gradle-scoverage + orgIdentifier: default + projectIdentifier: autogen + properties: + ci: + codebase: + build: <+input> + connectorRef: account.SahithiConnector + repoName: sahithibanda01/gradle-scoverage + stages: + - stage: + identifier: build + name: build + spec: + cloneCodebase: true + execution: + steps: + - step: + identifier: dockerbuild + name: docker_build + spec: + image: plugins/docker + settings: + dry_run: "true" + password: <+input> + repo: hello/world + tags: latest + username: <+input> + timeout: "" + type: Plugin + - step: + identifier: scalabuild + name: scala_build + spec: + command: "gradle build " + timeout: "" + type: Run + - step: + identifier: scalatest + name: scala_test + spec: + command: "./gradlew test\n\t\txml_file=$(find /harness/build/test-results/test -type f -name \"*.xml\" | head -n 1)\n\n\t\tif [ -n \"$xml_file\" ]; then\n\t\t\tcp \"$xml_file\" /harness/reports.xml\n\t\t\techo \"XML file copied to /harness/reports.xml\"\n\t\telse\n\t\t\techo \"No XML file found in /path\"\n\t\tfi" + timeout: "" + type: Run + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI diff --git a/.harness/pipelines/gradle-scoverage-1703140436142.yaml b/.harness/pipelines/gradle-scoverage-1703140436142.yaml new file mode 100644 index 0000000..afd7537 --- /dev/null +++ b/.harness/pipelines/gradle-scoverage-1703140436142.yaml @@ -0,0 +1,53 @@ +pipeline: + identifier: Build_sahithibanda01_gradle_scoverage_1703140439227 + name: Build gradle-scoverage + orgIdentifier: default + projectIdentifier: autogen + properties: + ci: + codebase: + build: <+input> + connectorRef: account.SahithiConnector + repoName: sahithibanda01/gradle-scoverage + stages: + - stage: + identifier: build + name: build + spec: + cloneCodebase: true + execution: + steps: + - step: + identifier: dockerbuild + name: docker_build + spec: + image: plugins/docker + settings: + dry_run: "true" + password: <+input> + repo: hello/world + tags: latest + username: <+input> + timeout: "" + type: Plugin + - step: + identifier: scalabuild + name: scala_build + spec: + command: "gradle build " + timeout: "" + type: Run + - step: + identifier: scalatest + name: scala_test + spec: + command: "./gradlew test\n\t\txml_file=$(find /harness/build/test-results/test -type f -name \"*.xml\" | head -n 1)\n\n\t\tif [ -n \"$xml_file\" ]; then\n\t\t\tcp \"$xml_file\" /harness/reports.xml\n\t\t\techo \"XML file copied to /harness/reports.xml\"\n\t\telse\n\t\t\techo \"No XML file found in /path\"\n\t\tfi" + timeout: "" + type: Run + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7f1068e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# Use an official OpenJDK runtime as a parent image +FROM openjdk:11-jre-slim + +# Set the working directory to /app +WORKDIR /app + +# Copy the built JAR file into the container at /app +# COPY build/libs/gradle-scoverage.jar /app/gradle-scoverage.jar + +ARG GREETING="Hello" +ARG BANDA="sahithi" +RUN echo "$GREETING, world!, $BANDA" + +# Specify the default command to run on boot +CMD ["java", "-jar", "gradle-scoverage.jar"] diff --git a/build.gradle b/build.gradle index b0251c2..4554aeb 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ gradlePlugin { id = 'org.scoverage' implementationClass = 'org.scoverage.ScoveragePlugin' displayName = 'Gradle Scoverage plugin' - tags.set(['coverage', 'scala', 'scoverage']) + // tags.set(['coverage', 'scala', 'scoverage']) } } }