From b88a2997f688c4bf24a3f36926c31f45bacc59b6 Mon Sep 17 00:00:00 2001 From: Christopher Suran Date: Tue, 27 Sep 2022 02:28:22 -0400 Subject: [PATCH 1/6] Create pipeline Build Spring Forward PR --- .harness/Build_Spring_Forward_PR.yaml | 42 +++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .harness/Build_Spring_Forward_PR.yaml diff --git a/.harness/Build_Spring_Forward_PR.yaml b/.harness/Build_Spring_Forward_PR.yaml new file mode 100644 index 0000000..7999bdb --- /dev/null +++ b/.harness/Build_Spring_Forward_PR.yaml @@ -0,0 +1,42 @@ +pipeline: + name: Build Spring Forward PR + identifier: Build_Spring_Forward_PR + projectIdentifier: SA_Examples + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: harnessioaccount + repoName: spring-forward-harness-example + build: <+input> + stages: + - stage: + name: Build PR + identifier: Build_PR + description: "" + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: sacluster + namespace: default + automountServiceAccountToken: true + nodeSelector: {} + os: Linux + execution: + steps: + - step: + type: BuildAndPushDockerRegistry + name: Build PR + identifier: Build_PR + spec: + connectorRef: sfdockerconnector + repo: ghcr.io/suranc/spring-forward-harness-example + tags: + - <+codebase.sourceBranch> + resources: + limits: + memory: 4Gi From 4439f65b8bac31e1c19227d5e8be7c64c5a6f15e Mon Sep 17 00:00:00 2001 From: Christopher Suran Date: Tue, 27 Sep 2022 02:33:12 -0400 Subject: [PATCH 2/6] Create inputset Spring Forward PR Input Set --- Spring_Forward_PR_Input_Set.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Spring_Forward_PR_Input_Set.yaml diff --git a/Spring_Forward_PR_Input_Set.yaml b/Spring_Forward_PR_Input_Set.yaml new file mode 100644 index 0000000..a001288 --- /dev/null +++ b/Spring_Forward_PR_Input_Set.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "Spring_Forward_PR_Input_Set" + name: "Spring Forward PR Input Set" + orgIdentifier: "default" + projectIdentifier: "SA_Examples" + pipeline: + identifier: "Build_Spring_Forward_PR" + properties: + ci: + codebase: + build: + type: "PR" + spec: + number: "<+trigger.prNumber>" From 16d862075df98c961d8d2d0a0c9b208d0c9d017c Mon Sep 17 00:00:00 2001 From: Chris Suran Date: Tue, 27 Sep 2022 02:36:47 -0400 Subject: [PATCH 3/6] Move input set --- .../Spring_Forward_PR_Input_Set.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Spring_Forward_PR_Input_Set.yaml => .harness/Spring_Forward_PR_Input_Set.yaml (100%) diff --git a/Spring_Forward_PR_Input_Set.yaml b/.harness/Spring_Forward_PR_Input_Set.yaml similarity index 100% rename from Spring_Forward_PR_Input_Set.yaml rename to .harness/Spring_Forward_PR_Input_Set.yaml From fb518837fa65801c1911d3ef5a4750719bfd3455 Mon Sep 17 00:00:00 2001 From: Christopher Suran Date: Tue, 27 Sep 2022 02:37:16 -0400 Subject: [PATCH 4/6] Harness.io Git Commit From fd9cf788b5f38e32732386cc33c975237ccc2ae7 Mon Sep 17 00:00:00 2001 From: Christopher Suran Date: Tue, 27 Sep 2022 02:38:47 -0400 Subject: [PATCH 5/6] Update pipeline Build Spring Forward PR --- .harness/Build_Spring_Forward_PR.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/Build_Spring_Forward_PR.yaml b/.harness/Build_Spring_Forward_PR.yaml index 7999bdb..da789d5 100644 --- a/.harness/Build_Spring_Forward_PR.yaml +++ b/.harness/Build_Spring_Forward_PR.yaml @@ -36,7 +36,7 @@ pipeline: connectorRef: sfdockerconnector repo: ghcr.io/suranc/spring-forward-harness-example tags: - - <+codebase.sourceBranch> + - pr-<+trigger.prNumber> resources: limits: memory: 4Gi From 10323d0a2e42fc1b24ef3387c5252f33ad171fb1 Mon Sep 17 00:00:00 2001 From: Chris Suran Date: Tue, 27 Sep 2022 02:40:07 -0400 Subject: [PATCH 6/6] Test PR Change --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..28513a2 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Test PR Change +