From a37828554315517b44844a51f857295a9b6bcae1 Mon Sep 17 00:00:00 2001 From: shashankgv Date: Mon, 6 Nov 2023 13:47:34 +0530 Subject: [PATCH 1/4] Added pipeline .harness/pipelines/go-pipeline-sample-1699258640798.yaml --- .../go-pipeline-sample-1699258640798.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .harness/pipelines/go-pipeline-sample-1699258640798.yaml diff --git a/.harness/pipelines/go-pipeline-sample-1699258640798.yaml b/.harness/pipelines/go-pipeline-sample-1699258640798.yaml new file mode 100644 index 0000000..262755b --- /dev/null +++ b/.harness/pipelines/go-pipeline-sample-1699258640798.yaml @@ -0,0 +1,51 @@ +pipeline: + identifier: Build_go_pipeline_sample_1699258651304 + name: Build go-pipeline-sample + orgIdentifier: default + projectIdentifier: project3 + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github_OAuth_1699258630140 + repoName: go-pipeline-sample + stages: + - stage: + identifier: build + name: build + spec: + cloneCodebase: true + execution: + steps: + - step: + identifier: gobuild + name: go_build + spec: + command: go build + timeout: "" + type: Run + - step: + identifier: gotest + name: go_test + spec: + command: go test -v ./... + timeout: "" + type: Run + - step: + identifier: dockerbuild + name: docker_build + spec: + image: plugins/docker + settings: + dry_run: "true" + repo: hello/world + tags: latest + timeout: "" + type: Plugin + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI From 2e0587439d5ffde9a514f1d80c16abdc841a4cc2 Mon Sep 17 00:00:00 2001 From: shashankgv Date: Mon, 6 Nov 2023 13:47:35 +0530 Subject: [PATCH 2/4] Added input set .harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml --- ...8651304-pr-trigger-input-set-1699258652300.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml diff --git a/.harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml b/.harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml new file mode 100644 index 0000000..e2d74b8 --- /dev/null +++ b/.harness/Build_go_pipeline_sample_1699258651304-pr-trigger-input-set-1699258652300.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_go_pipeline_sample_1699258651304-pr-trigger-input-set + identifier: Build_go_pipeline_sample_1699258651304prtriggerinputset + orgIdentifier: default + projectIdentifier: project3 + pipeline: + identifier: Build_go_pipeline_sample_1699258651304 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> From 714099598277a4057dd0f66fc04c68c649bc0b96 Mon Sep 17 00:00:00 2001 From: shashankgv Date: Mon, 6 Nov 2023 13:47:37 +0530 Subject: [PATCH 3/4] Added input set .harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml --- ...51304-push-trigger-input-set-1699258653556.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml diff --git a/.harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml b/.harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml new file mode 100644 index 0000000..3df8adb --- /dev/null +++ b/.harness/Build_go_pipeline_sample_1699258651304-push-trigger-input-set-1699258653556.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_go_pipeline_sample_1699258651304-push-trigger-input-set + identifier: Build_go_pipeline_sample_1699258651304pushtriggerinputset + orgIdentifier: default + projectIdentifier: project3 + pipeline: + identifier: Build_go_pipeline_sample_1699258651304 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 2a23b6875681cada2cf2772ecc3352062b3d7e51 Mon Sep 17 00:00:00 2001 From: shashankgv Date: Mon, 6 Nov 2023 14:03:10 +0530 Subject: [PATCH 4/4] Update pipeline Build go-pipeline-sample --- .harness/pipelines/go-pipeline-sample-1699258640798.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.harness/pipelines/go-pipeline-sample-1699258640798.yaml b/.harness/pipelines/go-pipeline-sample-1699258640798.yaml index 262755b..581b451 100644 --- a/.harness/pipelines/go-pipeline-sample-1699258640798.yaml +++ b/.harness/pipelines/go-pipeline-sample-1699258640798.yaml @@ -43,9 +43,10 @@ pipeline: timeout: "" type: Plugin platform: - arch: Amd64 os: Linux + arch: Amd64 runtime: - spec: {} type: Cloud + spec: {} type: CI + description: ""