From 80130ad76c17468c31d8abd79edbd74f9d93b640 Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:33:17 +0530 Subject: [PATCH 01/29] Update hello_server.go Test --- hello_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_server.go b/hello_server.go index df038fd..d70fd28 100644 --- a/hello_server.go +++ b/hello_server.go @@ -23,7 +23,7 @@ func CreateGreeting(name string) string { if name == "" { name = "Guest" } - return "Hello, " + name + "\n" + return "Helloo, " + name + "\n" } func main() { From 485684a212783ced3cb55b207dcdb403b0ee1fb9 Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:37:36 +0530 Subject: [PATCH 02/29] Update hello_server.go Test1 --- hello_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_server.go b/hello_server.go index d70fd28..839de6d 100644 --- a/hello_server.go +++ b/hello_server.go @@ -23,7 +23,7 @@ func CreateGreeting(name string) string { if name == "" { name = "Guest" } - return "Helloo, " + name + "\n" + return "Hellooo, " + name + "\n" } func main() { From a8ef1fd9c2c0a2e545319cc23c83f8f6ab4ca5ef Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:42:27 +0530 Subject: [PATCH 03/29] Update hello_server.go my test branch --- hello_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_server.go b/hello_server.go index 839de6d..1cad5ca 100644 --- a/hello_server.go +++ b/hello_server.go @@ -23,7 +23,7 @@ func CreateGreeting(name string) string { if name == "" { name = "Guest" } - return "Hellooo, " + name + "\n" + return "Helloooo, " + name + "\n" } func main() { From 79334cf8f0142335a498e96d86bba92230a25bac Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:28:14 +0530 Subject: [PATCH 04/29] Update hello_server.go test123456 --- hello_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_server.go b/hello_server.go index 1cad5ca..1ed1944 100644 --- a/hello_server.go +++ b/hello_server.go @@ -23,7 +23,7 @@ func CreateGreeting(name string) string { if name == "" { name = "Guest" } - return "Helloooo, " + name + "\n" + return "Hellooooo, " + name + "\n" } func main() { From 34cb5fbf6bb0bf6d0081e2aff839fd9df3a3ba44 Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:33:56 +0530 Subject: [PATCH 05/29] Update hello_server.go Change in Test branch --- hello_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_server.go b/hello_server.go index 1ed1944..2d97cd6 100644 --- a/hello_server.go +++ b/hello_server.go @@ -23,7 +23,7 @@ func CreateGreeting(name string) string { if name == "" { name = "Guest" } - return "Hellooooo, " + name + "\n" + return "Hellooooo1, " + name + "\n" } func main() { From e5dc6ffff538c9b9d1f6bad476888c4fedf8e779 Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:42:44 +0530 Subject: [PATCH 06/29] Update hello_server.go abc --- hello_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_server.go b/hello_server.go index 2d97cd6..6e0be6b 100644 --- a/hello_server.go +++ b/hello_server.go @@ -23,7 +23,7 @@ func CreateGreeting(name string) string { if name == "" { name = "Guest" } - return "Hellooooo1, " + name + "\n" + return "Hellooooo11, " + name + "\n" } func main() { From 1e38c99f78705cffe7559825d71b016f669f7cb9 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Fri, 1 Sep 2023 13:17:48 +0530 Subject: [PATCH 07/29] Create pipeline myfirstdeployment --- .harness/myfirstdeployment.yaml | 54 +++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .harness/myfirstdeployment.yaml diff --git a/.harness/myfirstdeployment.yaml b/.harness/myfirstdeployment.yaml new file mode 100644 index 0000000..88f2cea --- /dev/null +++ b/.harness/myfirstdeployment.yaml @@ -0,0 +1,54 @@ +pipeline: + name: myfirstdeployment + identifier: myfirstdeployment + projectIdentifier: shashank_sandbox + orgIdentifier: default + tags: {} + stages: + - stage: + name: QA + identifier: QA + description: "" + type: Deployment + spec: + deploymentType: Kubernetes + service: + serviceRef: myhelloworld + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + artifacts: + primary: + primaryArtifactRef: <+input> + sources: <+input> + environment: + environmentRef: mykubernates + deployToAll: false + infrastructureDefinitions: + - identifier: myinfra + execution: + steps: + - step: + name: Rollout Deployment + identifier: rolloutDeployment + type: K8sRollingDeploy + timeout: 10m + spec: + skipDryRun: false + pruningEnabled: false + rollbackSteps: + - step: + name: Rollback Rollout Deployment + identifier: rollbackRolloutDeployment + type: K8sRollingRollback + timeout: 10m + spec: + pruningEnabled: false + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback From 379e7105628413515bd3243dea0fdb7e976ec016 Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Fri, 1 Sep 2023 13:20:42 +0530 Subject: [PATCH 08/29] Create deployment.yaml deployment --- deployment.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 deployment.yaml diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..685c17a --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment + labels: + app: nginx +spec: + replicas: 3 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx:1.14.2 + ports: + - containerPort: 80 From d3f8cf1fe1ca43bc6d1de04176288f854b94d5b0 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Fri, 1 Sep 2023 16:54:59 +0530 Subject: [PATCH 09/29] Create inputset myinputset --- .harness/myinputset.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .harness/myinputset.yaml diff --git a/.harness/myinputset.yaml b/.harness/myinputset.yaml new file mode 100644 index 0000000..09c632c --- /dev/null +++ b/.harness/myinputset.yaml @@ -0,0 +1,25 @@ +inputSet: + name: myinputset + identifier: myinputset + orgIdentifier: default + projectIdentifier: shashank_sandbox + pipeline: + identifier: myfirstdeployment + stages: + - stage: + identifier: QA + type: Deployment + spec: + service: + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + artifacts: + primary: + primaryArtifactRef: myimage + sources: + - identifier: myimage + type: DockerRegistry + spec: + digest: <+input> From a4b1ad624e7221b6481a0101366fc3b14ded7d32 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Fri, 1 Sep 2023 17:16:40 +0530 Subject: [PATCH 10/29] Create template myfile --- config/myfile.yaml | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 config/myfile.yaml diff --git a/config/myfile.yaml b/config/myfile.yaml new file mode 100644 index 0000000..96cff5d --- /dev/null +++ b/config/myfile.yaml @@ -0,0 +1,56 @@ +template: + name: myfile + type: Pipeline + projectIdentifier: shashank_sandbox + orgIdentifier: default + spec: + stages: + - stage: + name: QA + identifier: QA + description: "" + type: Deployment + spec: + deploymentType: Kubernetes + service: + serviceRef: myhelloworld + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + artifacts: + primary: + primaryArtifactRef: <+input> + sources: <+input> + environment: + environmentRef: mykubernates + deployToAll: false + infrastructureDefinitions: + - identifier: myinfra + execution: + steps: + - step: + name: Rollout Deployment + identifier: rolloutDeployment + type: K8sRollingDeploy + timeout: 10m + spec: + skipDryRun: false + pruningEnabled: false + rollbackSteps: + - step: + name: Rollback Rollout Deployment + identifier: rollbackRolloutDeployment + type: K8sRollingRollback + timeout: 10m + spec: + pruningEnabled: false + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback + versionLabel: MyDeploymentTemplate + identifier: myfile From 9207a7ea7f2740d564d888f04c94ab11ec05ca69 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Mon, 4 Sep 2023 22:54:52 +0530 Subject: [PATCH 11/29] Create pipeline deployk8s --- .harness/deployk8s.yaml | 82 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .harness/deployk8s.yaml diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml new file mode 100644 index 0000000..4cb44b9 --- /dev/null +++ b/.harness/deployk8s.yaml @@ -0,0 +1,82 @@ +pipeline: + name: deployk8s + identifier: deployk8s + projectIdentifier: default_project + orgIdentifier: default + tags: {} + stages: + - stage: + name: deploy_QA + identifier: deploy_QA + description: "" + type: Deployment + spec: + deploymentType: Kubernetes + service: + serviceRef: myapp + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + artifacts: + primary: + primaryArtifactRef: <+input> + sources: <+input> + environment: + environmentRef: qa_env + deployToAll: false + infrastructureDefinitions: + - identifier: myinfra + execution: + steps: + - step: + type: TerraformPlan + name: TerraformPlan_1 + identifier: TerraformPlan_1 + spec: + provisionerIdentifier: qa987 + configuration: + command: Apply + configFiles: + store: + spec: + connectorRef: Shashank_github_connector + repoName: terraform-provider-kubernetes + gitFetchType: Branch + branch: main + folderPath: _examples/gke + type: Github + secretManagerRef: account.harnessSecretManager + timeout: 10m + - step: + type: HarnessApproval + name: HarnessApproval_1 + identifier: HarnessApproval_1 + spec: + approvalMessage: Please review the following information and approve the pipeline progression + includePipelineExecutionHistory: true + isAutoRejectEnabled: false + approvers: + userGroups: + - mygroup + minimumCount: 1 + disallowPipelineExecutor: false + approverInputs: [] + timeout: 1d + - step: + type: TerraformApply + name: TerraformApply_1 + identifier: TerraformApply_1 + spec: + provisionerIdentifier: qa987 + configuration: + type: InheritFromPlan + timeout: 10m + rollbackSteps: [] + tags: {} + failureStrategies: + - onFailure: + errors: + - Unknown + action: + type: Abort From 96c868343df159b0bf17960b2612fd82f14348ec Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Mon, 4 Sep 2023 22:57:11 +0530 Subject: [PATCH 12/29] Update pipeline deployk8s --- .harness/deployk8s.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml index 4cb44b9..8171f89 100644 --- a/.harness/deployk8s.yaml +++ b/.harness/deployk8s.yaml @@ -77,6 +77,6 @@ pipeline: failureStrategies: - onFailure: errors: - - Unknown + - ApprovalRejection action: type: Abort From 3feebde609550ea7cabcc7309f563c10bdaa4f16 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Mon, 4 Sep 2023 22:58:13 +0530 Subject: [PATCH 13/29] Update pipeline deployk8s --- .harness/deployk8s.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml index 8171f89..211a736 100644 --- a/.harness/deployk8s.yaml +++ b/.harness/deployk8s.yaml @@ -77,6 +77,6 @@ pipeline: failureStrategies: - onFailure: errors: - - ApprovalRejection + - AllErrors action: type: Abort From d661ffdea662262b225b1791a1db31c8f2e556b3 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Mon, 4 Sep 2023 23:09:44 +0530 Subject: [PATCH 14/29] Update pipeline deployk8s --- .harness/deployk8s.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml index 211a736..0b370d2 100644 --- a/.harness/deployk8s.yaml +++ b/.harness/deployk8s.yaml @@ -47,6 +47,9 @@ pipeline: folderPath: _examples/gke type: Github secretManagerRef: account.harnessSecretManager + skipRefreshCommand: false + delegateSelectors: + - helm-delegate timeout: 10m - step: type: HarnessApproval From 73068698b38b7070fd44ac7be205613806652d52 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Mon, 4 Sep 2023 23:27:35 +0530 Subject: [PATCH 15/29] Update pipeline deployk8s --- .harness/deployk8s.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml index 0b370d2..3fbdb1b 100644 --- a/.harness/deployk8s.yaml +++ b/.harness/deployk8s.yaml @@ -46,6 +46,8 @@ pipeline: branch: main folderPath: _examples/gke type: Github + moduleSource: + useConnectorCredentials: false secretManagerRef: account.harnessSecretManager skipRefreshCommand: false delegateSelectors: From cd7dbbc57f15af62d713bfe5ed3374ccb2b17862 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Mon, 4 Sep 2023 23:58:14 +0530 Subject: [PATCH 16/29] Update pipeline deployk8s --- .harness/deployk8s.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml index 3fbdb1b..baff727 100644 --- a/.harness/deployk8s.yaml +++ b/.harness/deployk8s.yaml @@ -31,7 +31,7 @@ pipeline: steps: - step: type: TerraformPlan - name: TerraformPlan_1 + name: TerraformPlan identifier: TerraformPlan_1 spec: provisionerIdentifier: qa987 From 4478a1562f192705c260a285cdf8407d9759e2e7 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Tue, 5 Sep 2023 00:01:51 +0530 Subject: [PATCH 17/29] Update pipeline deployk8s --- .harness/deployk8s.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.harness/deployk8s.yaml b/.harness/deployk8s.yaml index baff727..4dd8206 100644 --- a/.harness/deployk8s.yaml +++ b/.harness/deployk8s.yaml @@ -50,8 +50,6 @@ pipeline: useConnectorCredentials: false secretManagerRef: account.harnessSecretManager skipRefreshCommand: false - delegateSelectors: - - helm-delegate timeout: 10m - step: type: HarnessApproval From ad36579b84cf27324092dfbf9b87817e3f5332dd Mon Sep 17 00:00:00 2001 From: shashanksandbox <143501888+shashanksandbox@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:44:21 +0530 Subject: [PATCH 18/29] Update deployment.yaml change --- deployment.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index 685c17a..2ca2ed2 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,21 +1,20 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: nginx-deployment - labels: - app: nginx + name: guestbook-ui spec: replicas: 3 + revisionHistoryLimit: 3 selector: matchLabels: - app: nginx + app: guestbook-ui template: metadata: labels: - app: nginx + app: guestbook-ui spec: containers: - - name: nginx - image: nginx:1.14.2 + - image: gcr.io/heptio-images/ks-guestbook-demo:0.1 + name: guestbook-ui ports: - containerPort: 80 From 95d36f819f191c955403fd3661e6f3f1c008cd54 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Tue, 19 Sep 2023 16:16:33 +0530 Subject: [PATCH 19/29] Create pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .harness/Test_Shell_Script_Pipeline.yaml diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml new file mode 100644 index 0000000..294bf7a --- /dev/null +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -0,0 +1,58 @@ +pipeline: + name: Test_Shell_Script_Pipeline + identifier: Test_Shell_Script_Pipeline + projectIdentifier: shashank_sandbox + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: shashank_github + repoName: goHelloWorldServer + build: <+input> + stages: + - stage: + name: test_build + identifier: test_build + description: "" + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: Run + name: Run_1 + identifier: Run_1 + spec: + connectorRef: Shashank_docker + image: golang:1.15 + shell: Sh + command: |- + go get gotest.tools/gotestsum + gotestsum --format=standard-verbose --junitfile test.xml || true + testresult="passed" + testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:19:45 +0530 Subject: [PATCH 20/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index 294bf7a..f0b447f 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -31,6 +31,7 @@ pipeline: command: |- go get gotest.tools/gotestsum gotestsum --format=standard-verbose --junitfile test.xml || true + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo testresult="passed" testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:20:07 +0530 Subject: [PATCH 21/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index f0b447f..e9b4023 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -46,7 +46,7 @@ pipeline: type: JUnit spec: paths: - - "**/test.xml" + - "**/*.xml" outputVariables: - name: testresult infrastructure: From 1e71b6ef80cf2c7bdf943fb4f4977de74eb4ebf6 Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Tue, 19 Sep 2023 16:21:19 +0530 Subject: [PATCH 22/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index e9b4023..8fd6274 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -32,6 +32,7 @@ pipeline: go get gotest.tools/gotestsum gotestsum --format=standard-verbose --junitfile test.xml || true CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo + sleep 5m testresult="passed" testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:24:08 +0530 Subject: [PATCH 23/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index 8fd6274..096f67e 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -30,7 +30,7 @@ pipeline: shell: Sh command: |- go get gotest.tools/gotestsum - gotestsum --format=standard-verbose --junitfile test.xml || true + gotestsum --format=standard-verbose --junitfile unit-tests.xml || true CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo sleep 5m testresult="passed" @@ -47,7 +47,7 @@ pipeline: type: JUnit spec: paths: - - "**/*.xml" + - test.xml outputVariables: - name: testresult infrastructure: From 557bfe1390f411a13e758a478925372ad9f4b34a Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Tue, 19 Sep 2023 16:28:53 +0530 Subject: [PATCH 24/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index 096f67e..fa2a404 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -34,7 +34,7 @@ pipeline: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo sleep 5m testresult="passed" - testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:31:03 +0530 Subject: [PATCH 25/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index fa2a404..7d09654 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -47,7 +47,7 @@ pipeline: type: JUnit spec: paths: - - unit-tests.xml + - "*.xml" outputVariables: - name: testresult infrastructure: From 80f67e959b2bc0c340534954865f9e8f9acc985a Mon Sep 17 00:00:00 2001 From: shashanksandbox Date: Tue, 19 Sep 2023 16:34:43 +0530 Subject: [PATCH 26/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index 7d09654..b6b2e40 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -28,10 +28,9 @@ pipeline: connectorRef: Shashank_docker image: golang:1.15 shell: Sh - command: |- + command: | go get gotest.tools/gotestsum gotestsum --format=standard-verbose --junitfile unit-tests.xml || true - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo sleep 5m testresult="passed" testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:37:48 +0530 Subject: [PATCH 27/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index b6b2e40..7d595b1 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -33,7 +33,7 @@ pipeline: gotestsum --format=standard-verbose --junitfile unit-tests.xml || true sleep 5m testresult="passed" - testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:41:38 +0530 Subject: [PATCH 28/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 26 ++++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index 7d595b1..0cf42cc 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -31,7 +31,23 @@ pipeline: command: | go get gotest.tools/gotestsum gotestsum --format=standard-verbose --junitfile unit-tests.xml || true - sleep 5m + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo + reports: + type: JUnit + spec: + paths: + - "*.xml" + outputVariables: + - name: testresult + - step: + type: Run + name: Run_2 + identifier: Run_2 + spec: + connectorRef: Shashank_docker + image: golang:1.15 + shell: Sh + command: |- testresult="passed" testfail=$(grep -c " Date: Tue, 19 Sep 2023 16:45:50 +0530 Subject: [PATCH 29/29] Update pipeline Test_Shell_Script_Pipeline --- .harness/Test_Shell_Script_Pipeline.yaml | 26 ++++++++---------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.harness/Test_Shell_Script_Pipeline.yaml b/.harness/Test_Shell_Script_Pipeline.yaml index 0cf42cc..97bf26b 100644 --- a/.harness/Test_Shell_Script_Pipeline.yaml +++ b/.harness/Test_Shell_Script_Pipeline.yaml @@ -31,23 +31,7 @@ pipeline: command: | go get gotest.tools/gotestsum gotestsum --format=standard-verbose --junitfile unit-tests.xml || true - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo - reports: - type: JUnit - spec: - paths: - - "*.xml" - outputVariables: - - name: testresult - - step: - type: Run - name: Run_2 - identifier: Run_2 - spec: - connectorRef: Shashank_docker - image: golang:1.15 - shell: Sh - command: |- + sleep 5m testresult="passed" testfail=$(grep -c "