From 3dc3e7224daf22679afc3f9871a2b3246cf26ed2 Mon Sep 17 00:00:00 2001 From: sahithiharness Date: Tue, 28 Nov 2023 17:13:07 +0530 Subject: [PATCH 01/15] push docker file --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c73d1ba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# 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/your-project-name.jar /app/your-project-name.jar + +# Specify the default command to run on boot +CMD ["java", "-jar", "your-project-name.jar"] From bc058e9fa71856bd4b14cc5397825d9141a1e335 Mon Sep 17 00:00:00 2001 From: sahithibanda01 <139854962+sahithibanda01@users.noreply.github.com> Date: Tue, 28 Nov 2023 18:39:20 +0530 Subject: [PATCH 02/15] Update build.gradle --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) } } } From c53d77e7ddf2eb36f4fe9df44c86dcbc2a3d6ced Mon Sep 17 00:00:00 2001 From: sahithibanda01 <139854962+sahithibanda01@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:10:56 +0530 Subject: [PATCH 03/15] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c73d1ba..7322f11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM openjdk:11-jre-slim WORKDIR /app # Copy the built JAR file into the container at /app -COPY build/libs/your-project-name.jar /app/your-project-name.jar +COPY build/libs/gradle-scoverage.jar /app/gradle-scoverage.jar # Specify the default command to run on boot -CMD ["java", "-jar", "your-project-name.jar"] +CMD ["java", "-jar", "gradle-scoverage.jar"] From 235d6a440ed4fdd98c82245f92bf84be50505e46 Mon Sep 17 00:00:00 2001 From: sahithibanda01 <139854962+sahithibanda01@users.noreply.github.com> Date: Wed, 29 Nov 2023 13:32:41 +0530 Subject: [PATCH 04/15] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7322f11..b38b293 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM openjdk:11-jre-slim WORKDIR /app # Copy the built JAR file into the container at /app -COPY build/libs/gradle-scoverage.jar /app/gradle-scoverage.jar +# COPY build/libs/gradle-scoverage.jar /app/gradle-scoverage.jar # Specify the default command to run on boot CMD ["java", "-jar", "gradle-scoverage.jar"] From d320b1890eed81c961cb5c25d6eb417c275f6924 Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 11:42:46 +0530 Subject: [PATCH 05/15] Added pipeline .harness/pipelines/gradle-scoverage-1703139162983.yaml --- .../gradle-scoverage-1703139162983.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .harness/pipelines/gradle-scoverage-1703139162983.yaml 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 From f811a98092f1fec71de95f7d5848c6b3cba035a7 Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 11:42:47 +0530 Subject: [PATCH 06/15] Added input set .harness/Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set-1703139166958.yaml --- ...9166056-pr-trigger-input-set-1703139166958.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_sahithibanda01_gradle_scoverage_1703139166056-pr-trigger-input-set-1703139166958.yaml 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> From 9f68ff4ffab9023edc5d39786cd34a3b8172023c Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 11:42:48 +0530 Subject: [PATCH 07/15] Added input set .harness/Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set-1703139167967.yaml --- ...66056-push-trigger-input-set-1703139167967.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_sahithibanda01_gradle_scoverage_1703139166056-push-trigger-input-set-1703139167967.yaml 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> From e3102d4dfad74eff5d823f87121ec2e7f06c6094 Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 11:59:34 +0530 Subject: [PATCH 08/15] Added pipeline .harness/pipelines/gradle-scoverage-1703140170385.yaml --- .../gradle-scoverage-1703140170385.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .harness/pipelines/gradle-scoverage-1703140170385.yaml 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 From 41b84211e53fe7b55e1fc67d90d0785a5e207b00 Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 11:59:35 +0530 Subject: [PATCH 09/15] Added input set .harness/Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set-1703140174577.yaml --- ...0173662-pr-trigger-input-set-1703140174577.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_sahithibanda01_gradle_scoverage_1703140173662-pr-trigger-input-set-1703140174577.yaml 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> From a7f804b2b8e6ad2aa1ba495d9f37dc1b28d2717b Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 11:59:36 +0530 Subject: [PATCH 10/15] Added input set .harness/Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set-1703140175598.yaml --- ...73662-push-trigger-input-set-1703140175598.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_sahithibanda01_gradle_scoverage_1703140173662-push-trigger-input-set-1703140175598.yaml 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> From c50ff6ea4f8ed2821035f6d9da60754120e0e47a Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 12:03:59 +0530 Subject: [PATCH 11/15] Added pipeline .harness/pipelines/gradle-scoverage-1703140436142.yaml --- .../gradle-scoverage-1703140436142.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .harness/pipelines/gradle-scoverage-1703140436142.yaml 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 From 4269c88d53610edd85fd0b4ba2c6247fdea4180b Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 12:04:00 +0530 Subject: [PATCH 12/15] Added input set .harness/Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set-1703140440089.yaml --- ...0439227-pr-trigger-input-set-1703140440089.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_sahithibanda01_gradle_scoverage_1703140439227-pr-trigger-input-set-1703140440089.yaml 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> From 7a7bdea33055b5ce97384a541c8df40ac7677a33 Mon Sep 17 00:00:00 2001 From: admin user Date: Thu, 21 Dec 2023 12:04:01 +0530 Subject: [PATCH 13/15] Added input set .harness/Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set-1703140441159.yaml --- ...39227-push-trigger-input-set-1703140441159.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_sahithibanda01_gradle_scoverage_1703140439227-push-trigger-input-set-1703140441159.yaml 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> From a18c2ef00811e944aa0f8317607a89b2524beb9d Mon Sep 17 00:00:00 2001 From: sahithibanda01 <139854962+sahithibanda01@users.noreply.github.com> Date: Fri, 15 Nov 2024 15:39:04 +0530 Subject: [PATCH 14/15] Update Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b38b293..aa31772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,8 @@ 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" +RUN echo "$GREETING, world!" + # Specify the default command to run on boot CMD ["java", "-jar", "gradle-scoverage.jar"] From 7b1728b34214e9b78fab2b7ef810f17e49739b7d Mon Sep 17 00:00:00 2001 From: sahithibanda01 <139854962+sahithibanda01@users.noreply.github.com> Date: Fri, 15 Nov 2024 18:00:47 +0530 Subject: [PATCH 15/15] Update Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index aa31772..7f1068e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,8 @@ WORKDIR /app # COPY build/libs/gradle-scoverage.jar /app/gradle-scoverage.jar ARG GREETING="Hello" -RUN echo "$GREETING, world!" +ARG BANDA="sahithi" +RUN echo "$GREETING, world!, $BANDA" # Specify the default command to run on boot CMD ["java", "-jar", "gradle-scoverage.jar"]