From d384e952278b9ce75db92237c3f2344d979def9e Mon Sep 17 00:00:00 2001 From: febylein_tom Date: Tue, 31 Oct 2023 01:28:22 -0500 Subject: [PATCH 1/4] Added pipeline .harness/pipelines/gosample-1698733680738.yaml --- .../pipelines/gosample-1698733680738.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .harness/pipelines/gosample-1698733680738.yaml diff --git a/.harness/pipelines/gosample-1698733680738.yaml b/.harness/pipelines/gosample-1698733680738.yaml new file mode 100644 index 0000000..0d73936 --- /dev/null +++ b/.harness/pipelines/gosample-1698733680738.yaml @@ -0,0 +1,40 @@ +pipeline: + identifier: Build_gosample_1698733703397 + name: Build gosample + orgIdentifier: default + projectIdentifier: default_project + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github_OAuth_1698733671125 + repoName: gosample + 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 + platform: + arch: Amd64 + os: Linux + runtime: + spec: {} + type: Cloud + type: CI From 98f7ec9e3f9000bb4ca5782ea4112d8a2dd11542 Mon Sep 17 00:00:00 2001 From: febylein_tom Date: Tue, 31 Oct 2023 01:28:23 -0500 Subject: [PATCH 2/4] Added input set .harness/Build_gosample_1698733703397-pr-trigger-input-set-1698733705024.yaml --- ...3703397-pr-trigger-input-set-1698733705024.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_gosample_1698733703397-pr-trigger-input-set-1698733705024.yaml diff --git a/.harness/Build_gosample_1698733703397-pr-trigger-input-set-1698733705024.yaml b/.harness/Build_gosample_1698733703397-pr-trigger-input-set-1698733705024.yaml new file mode 100644 index 0000000..556e3d0 --- /dev/null +++ b/.harness/Build_gosample_1698733703397-pr-trigger-input-set-1698733705024.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_gosample_1698733703397-pr-trigger-input-set + identifier: Build_gosample_1698733703397prtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_gosample_1698733703397 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> From 8300033995025e0c6543d77fa447b2c934eafa58 Mon Sep 17 00:00:00 2001 From: febylein_tom Date: Tue, 31 Oct 2023 01:28:24 -0500 Subject: [PATCH 3/4] Added input set .harness/Build_gosample_1698733703397-push-trigger-input-set-1698733706024.yaml --- ...03397-push-trigger-input-set-1698733706024.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .harness/Build_gosample_1698733703397-push-trigger-input-set-1698733706024.yaml diff --git a/.harness/Build_gosample_1698733703397-push-trigger-input-set-1698733706024.yaml b/.harness/Build_gosample_1698733703397-push-trigger-input-set-1698733706024.yaml new file mode 100644 index 0000000..9511216 --- /dev/null +++ b/.harness/Build_gosample_1698733703397-push-trigger-input-set-1698733706024.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_gosample_1698733703397-push-trigger-input-set + identifier: Build_gosample_1698733703397pushtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_gosample_1698733703397 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> From 1cd79311c8f93f899c0004d0166e6a60e7791a48 Mon Sep 17 00:00:00 2001 From: febylein_tom Date: Tue, 31 Oct 2023 01:29:52 -0500 Subject: [PATCH 4/4] Update pipeline Build gosample --- .harness/pipelines/gosample-1698733680738.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.harness/pipelines/gosample-1698733680738.yaml b/.harness/pipelines/gosample-1698733680738.yaml index 0d73936..1278241 100644 --- a/.harness/pipelines/gosample-1698733680738.yaml +++ b/.harness/pipelines/gosample-1698733680738.yaml @@ -31,6 +31,15 @@ pipeline: command: go test -v ./... timeout: "" type: Run + - step: + type: Run + identifier: build_go_app + name: Build Go App + spec: + command: |- + echo "Welcome to Harness CI" + go build + go test platform: arch: Amd64 os: Linux