From ea2fc2c5ad7b7c018dc5a26687dc6048eb7d25e8 Mon Sep 17 00:00:00 2001 From: gopajit_malakar Date: Wed, 19 Jun 2024 15:53:56 +0530 Subject: [PATCH 01/10] Added pipeline .harness/pipelines/gradle-example-1718792615039.yaml --- .../gradle-example-1718792615039.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .harness/pipelines/gradle-example-1718792615039.yaml diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml new file mode 100644 index 0000000..87f14b6 --- /dev/null +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -0,0 +1,54 @@ +pipeline: + identifier: Build_Gopajit_gradle_example_1718792632204 + name: gopajit-gradle-example + orgIdentifier: default + projectIdentifier: GopajitGradleProject + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github + repoName: Gopajit/gradle-example + stages: + - stage: + identifier: build + name: build + spec: + caching: + enabled: true + cloneCodebase: true + execution: + steps: + - step: + identifier: echo + name: echo + spec: + command: echo hello world + timeout: "" + type: Run + - 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" + reports: + spec: + paths: + - /harness/reports.xml + type: JUnit + timeout: "" + type: Run + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI From 26c023ca872e40661ac8cdeb57f2b8b71c2e81c8 Mon Sep 17 00:00:00 2001 From: gopajit_malakar Date: Wed, 19 Jun 2024 15:53:57 +0530 Subject: [PATCH 02/10] Added input set .harness/Build_Gopajit_gradle_example_1718792632204-pr-trigger-input-set-1718792633434.yaml --- ...2632204-pr-trigger-input-set-1718792633434.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_Gopajit_gradle_example_1718792632204-pr-trigger-input-set-1718792633434.yaml diff --git a/.harness/Build_Gopajit_gradle_example_1718792632204-pr-trigger-input-set-1718792633434.yaml b/.harness/Build_Gopajit_gradle_example_1718792632204-pr-trigger-input-set-1718792633434.yaml new file mode 100644 index 0000000..eb57cc8 --- /dev/null +++ b/.harness/Build_Gopajit_gradle_example_1718792632204-pr-trigger-input-set-1718792633434.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_Gopajit_gradle_example_1718792632204-pr-trigger-input-set + identifier: Build_Gopajit_gradle_example_1718792632204prtriggerinputset + orgIdentifier: default + projectIdentifier: GopajitGradleProject + pipeline: + identifier: Build_Gopajit_gradle_example_1718792632204 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> From d5e5afb575e7446dce6e47e0a9911e5dab3c2fe5 Mon Sep 17 00:00:00 2001 From: gopajit_malakar Date: Wed, 19 Jun 2024 15:53:58 +0530 Subject: [PATCH 03/10] Added input set .harness/Build_Gopajit_gradle_example_1718792632204-push-trigger-input-set-1718792634979.yaml --- ...32204-push-trigger-input-set-1718792634979.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_Gopajit_gradle_example_1718792632204-push-trigger-input-set-1718792634979.yaml diff --git a/.harness/Build_Gopajit_gradle_example_1718792632204-push-trigger-input-set-1718792634979.yaml b/.harness/Build_Gopajit_gradle_example_1718792632204-push-trigger-input-set-1718792634979.yaml new file mode 100644 index 0000000..e71f215 --- /dev/null +++ b/.harness/Build_Gopajit_gradle_example_1718792632204-push-trigger-input-set-1718792634979.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_Gopajit_gradle_example_1718792632204-push-trigger-input-set + identifier: Build_Gopajit_gradle_example_1718792632204pushtriggerinputset + orgIdentifier: default + projectIdentifier: GopajitGradleProject + pipeline: + identifier: Build_Gopajit_gradle_example_1718792632204 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 421f4491d4dca6bedce72a09d1a84dcb07fc5266 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Wed, 19 Jun 2024 16:40:21 +0530 Subject: [PATCH 04/10] Update pipeline gopajit-gradle-example --- .../gradle-example-1718792615039.yaml | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index 87f14b6..9f7d81c 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -20,35 +20,31 @@ pipeline: execution: steps: - step: - identifier: echo - name: echo - spec: - command: echo hello world - timeout: "" type: Run - - step: - identifier: scalabuild - name: scala_build + name: gradle-build + identifier: gradlebuild spec: - command: "gradle build " - timeout: "" - type: Run + shell: Sh + command: gradle build - step: - identifier: scalatest - name: scala_test + type: RunTests + name: gradle-test + identifier: gradletest 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" + language: Java + buildTool: Gradle + args: clean test + runOnlySelectedTests: true reports: + type: JUnit spec: paths: - - /harness/reports.xml - type: JUnit - timeout: "" - type: Run + - "**/*.xml" + enableTestSplitting: false platform: - arch: Amd64 os: Linux + arch: Amd64 runtime: - spec: {} type: Cloud + spec: {} type: CI From 0420f824ec493b69acee3b971111eebd4e7acf47 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Mon, 2 Sep 2024 09:55:11 +0530 Subject: [PATCH 05/10] Update pipeline gopajit-gradle-example --- .../gradle-example-1718792615039.yaml | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index 9f7d81c..677a180 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -25,22 +25,14 @@ pipeline: identifier: gradlebuild spec: shell: Sh - command: gradle build + command: gradle -e build - step: - type: RunTests - name: gradle-test - identifier: gradletest + type: Run + name: find-jar + identifier: findjar spec: - language: Java - buildTool: Gradle - args: clean test - runOnlySelectedTests: true - reports: - type: JUnit - spec: - paths: - - "**/*.xml" - enableTestSplitting: false + shell: Sh + command: pwd platform: os: Linux arch: Amd64 From f00344233fa1b2713bc412d58a6f7f32663f93b9 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Mon, 2 Sep 2024 09:58:45 +0530 Subject: [PATCH 06/10] Update pipeline gopajit-gradle-example --- .harness/pipelines/gradle-example-1718792615039.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index 677a180..62b61b5 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -35,7 +35,7 @@ pipeline: command: pwd platform: os: Linux - arch: Amd64 + arch: Arm64 runtime: type: Cloud spec: {} From 859bfa4ceb35e09365273eedac8aaf8d430c8466 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Mon, 2 Sep 2024 10:03:55 +0530 Subject: [PATCH 07/10] Update pipeline gopajit-gradle-example --- .harness/pipelines/gradle-example-1718792615039.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index 62b61b5..d0a196f 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -25,7 +25,7 @@ pipeline: identifier: gradlebuild spec: shell: Sh - command: gradle -e build + command: gradle --debug build - step: type: Run name: find-jar From ebc5b5e1bbf888e4cc69f1716f0f4b55749c66e4 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Mon, 2 Sep 2024 10:19:42 +0530 Subject: [PATCH 08/10] Update pipeline gopajit-gradle-example --- .harness/pipelines/gradle-example-1718792615039.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index d0a196f..4b4c82f 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -25,14 +25,16 @@ pipeline: identifier: gradlebuild spec: shell: Sh - command: gradle --debug build + command: gradle build - step: type: Run name: find-jar identifier: findjar spec: shell: Sh - command: pwd + command: |- + cd /harness/build/libs/ + ls -lrt platform: os: Linux arch: Arm64 From 4e430a502783dc84767c59afc12f2965457b1bc0 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Tue, 3 Sep 2024 12:50:54 +0530 Subject: [PATCH 09/10] Update pipeline gopajit-gradle-example --- .harness/pipelines/gradle-example-1718792615039.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index 4b4c82f..3915310 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -35,6 +35,7 @@ pipeline: command: |- cd /harness/build/libs/ ls -lrt + java -jar gradle-example.jar platform: os: Linux arch: Arm64 From 41ce564ce103794ef623e1c762df80c6de5ed942 Mon Sep 17 00:00:00 2001 From: Gopajit Date: Tue, 3 Sep 2024 13:00:49 +0530 Subject: [PATCH 10/10] Update pipeline gopajit-gradle-example --- .harness/pipelines/gradle-example-1718792615039.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.harness/pipelines/gradle-example-1718792615039.yaml b/.harness/pipelines/gradle-example-1718792615039.yaml index 3915310..4b4c82f 100644 --- a/.harness/pipelines/gradle-example-1718792615039.yaml +++ b/.harness/pipelines/gradle-example-1718792615039.yaml @@ -35,7 +35,6 @@ pipeline: command: |- cd /harness/build/libs/ ls -lrt - java -jar gradle-example.jar platform: os: Linux arch: Arm64