diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..fbe80039 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Go Build +on: + pull_request: + branches: + - main + - develop + +env: + BUILD_PURPOSE: RELEASE + +jobs: + gobuild: + if: contains(github.event.pull_request.labels.*.name, 'go') || contains(github.event.pull_request.labels.*.name, 'gojava') + name: Go Build + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + go: + - '**/**' + - '*test.txt*' + token: ${{ github.token }} + diff --git a/.harness/Build_rajatharanganath_testgo_1703240127905-pr-trigger-input-set-1703240128781.yaml b/.harness/Build_rajatharanganath_testgo_1703240127905-pr-trigger-input-set-1703240128781.yaml new file mode 100644 index 00000000..5748fe47 --- /dev/null +++ b/.harness/Build_rajatharanganath_testgo_1703240127905-pr-trigger-input-set-1703240128781.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_rajatharanganath_testgo_1703240127905-pr-trigger-input-set + identifier: Build_rajatharanganath_testgo_1703240127905prtriggerinputset + orgIdentifier: default + projectIdentifier: SatyaTest + pipeline: + identifier: Build_rajatharanganath_testgo_1703240127905 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_rajatharanganath_testgo_1703240127905-push-trigger-input-set-1703240129919.yaml b/.harness/Build_rajatharanganath_testgo_1703240127905-push-trigger-input-set-1703240129919.yaml new file mode 100644 index 00000000..2573b8c0 --- /dev/null +++ b/.harness/Build_rajatharanganath_testgo_1703240127905-push-trigger-input-set-1703240129919.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_rajatharanganath_testgo_1703240127905-push-trigger-input-set + identifier: Build_rajatharanganath_testgo_1703240127905pushtriggerinputset + orgIdentifier: default + projectIdentifier: SatyaTest + pipeline: + identifier: Build_rajatharanganath_testgo_1703240127905 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/Build_rajatharanganath_testgo_1744207423831-pr-trigger-input-set-1744207431768.yaml b/.harness/Build_rajatharanganath_testgo_1744207423831-pr-trigger-input-set-1744207431768.yaml new file mode 100644 index 00000000..2d709b97 --- /dev/null +++ b/.harness/Build_rajatharanganath_testgo_1744207423831-pr-trigger-input-set-1744207431768.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_rajatharanganath_testgo_1744207423831-pr-trigger-input-set + identifier: Build_rajatharanganath_testgo_1744207423831prtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_rajatharanganath_testgo_1744207423831 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_rajatharanganath_testgo_1744207423831-push-trigger-input-set-1744207434280.yaml b/.harness/Build_rajatharanganath_testgo_1744207423831-push-trigger-input-set-1744207434280.yaml new file mode 100644 index 00000000..53a811e6 --- /dev/null +++ b/.harness/Build_rajatharanganath_testgo_1744207423831-push-trigger-input-set-1744207434280.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_rajatharanganath_testgo_1744207423831-push-trigger-input-set + identifier: Build_rajatharanganath_testgo_1744207423831pushtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_rajatharanganath_testgo_1744207423831 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/Build_testgo_1681990286535-pr-trigger-input-set.yaml b/.harness/Build_testgo_1681990286535-pr-trigger-input-set.yaml new file mode 100644 index 00000000..dd8227d3 --- /dev/null +++ b/.harness/Build_testgo_1681990286535-pr-trigger-input-set.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_testgo_1681990286535-pr-trigger-input-set + identifier: Build_testgo_1681990286535prtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_testgo_1681990286535 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_testgo_1681990286535-push-trigger-input-set.yaml b/.harness/Build_testgo_1681990286535-push-trigger-input-set.yaml new file mode 100644 index 00000000..39be825d --- /dev/null +++ b/.harness/Build_testgo_1681990286535-push-trigger-input-set.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_testgo_1681990286535-push-trigger-input-set + identifier: Build_testgo_1681990286535pushtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_testgo_1681990286535 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/Build_testgo_1683213351552-pr-trigger-input-set-1683213358770.yaml b/.harness/Build_testgo_1683213351552-pr-trigger-input-set-1683213358770.yaml new file mode 100644 index 00000000..f0a71c9e --- /dev/null +++ b/.harness/Build_testgo_1683213351552-pr-trigger-input-set-1683213358770.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_testgo_1683213351552-pr-trigger-input-set + identifier: Build_testgo_1683213351552prtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_testgo_1683213351552 + properties: + ci: + codebase: + build: + type: PR + spec: + number: <+trigger.prNumber> diff --git a/.harness/Build_testgo_1683213351552-push-trigger-input-set-1683213360417.yaml b/.harness/Build_testgo_1683213351552-push-trigger-input-set-1683213360417.yaml new file mode 100644 index 00000000..6a39fb3c --- /dev/null +++ b/.harness/Build_testgo_1683213351552-push-trigger-input-set-1683213360417.yaml @@ -0,0 +1,14 @@ +inputSet: + name: Build_testgo_1683213351552-push-trigger-input-set + identifier: Build_testgo_1683213351552pushtriggerinputset + orgIdentifier: default + projectIdentifier: default_project + pipeline: + identifier: Build_testgo_1683213351552 + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> diff --git a/.harness/CodebaseTest1.yaml b/.harness/CodebaseTest1.yaml new file mode 100644 index 00000000..4e66f54d --- /dev/null +++ b/.harness/CodebaseTest1.yaml @@ -0,0 +1,11 @@ +version: 1 +name: CodebaseTest_1671534953279 +stages: + - name: Build and test Java app + type: ci + spec: + steps: + - name: Build + type: script + spec: + run: echo "Hello world" diff --git a/.harness/IS1.yaml b/.harness/IS1.yaml new file mode 100644 index 00000000..3f5df4c0 --- /dev/null +++ b/.harness/IS1.yaml @@ -0,0 +1,24 @@ +inputSet: + identifier: "InputSet1" + name: "InputSet1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "test1" diff --git a/.harness/IS2.yaml b/.harness/IS2.yaml new file mode 100644 index 00000000..0c9507a8 --- /dev/null +++ b/.harness/IS2.yaml @@ -0,0 +1,27 @@ +inputSet: + identifier: "InputSet2" + name: "InputSet2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.selfSignedDockerRegistry" + image: "nginx" diff --git a/.harness/InputSet1.yaml b/.harness/InputSet1.yaml new file mode 100644 index 00000000..4793039f --- /dev/null +++ b/.harness/InputSet1.yaml @@ -0,0 +1,11 @@ +inputSet: + identifier: "InputSet1" + name: "InputSet1" + orgIdentifier: "default" + projectIdentifier: "RajathaDemo" + pipeline: + identifier: "TestPipeLineWithInputSet" + variables: + - name: "MAGIC" + type: "String" + value: "MAGIN_INPUTSET_712pm" diff --git a/.harness/InputSet2Sample.yaml b/.harness/InputSet2Sample.yaml new file mode 100644 index 00000000..c4f51a14 --- /dev/null +++ b/.harness/InputSet2Sample.yaml @@ -0,0 +1,17 @@ +inputSet: + name: InputSet2Sample + tags: {} + identifier: InputSet2Sample + orgIdentifier: default + projectIdentifier: RajathaTest2 + pipeline: + identifier: pipeline2 + template: + templateInputs: + properties: + ci: + codebase: + build: + type: branch + spec: + branch: main diff --git a/.harness/InputSetTrigger.yaml b/.harness/InputSetTrigger.yaml new file mode 100644 index 00000000..d7e3653f --- /dev/null +++ b/.harness/InputSetTrigger.yaml @@ -0,0 +1,26 @@ +inputSet: + identifier: "InputSet1" + name: "InputSet1" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "TestGitExpWithOAuth" + stages: + - stage: + identifier: "stg1" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "step1" + type: "Run" + spec: + command: "echo test" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/InputsetGitexp.yaml b/.harness/InputsetGitexp.yaml new file mode 100644 index 00000000..0ccdb024 --- /dev/null +++ b/.harness/InputsetGitexp.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "InputsetGitexp" + name: "InputsetGitexp" + orgIdentifier: "default" + projectIdentifier: "RajathaTest3" + pipeline: + identifier: "TestGitExp" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "main" diff --git a/.harness/InputsetPart1.yaml b/.harness/InputsetPart1.yaml new file mode 100644 index 00000000..baf67ecd --- /dev/null +++ b/.harness/InputsetPart1.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "InputsetPart1" + name: "InputsetPart1" + orgIdentifier: "default" + projectIdentifier: "RajathaTest3" + pipeline: + identifier: "TestGitExp" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "main" diff --git a/.harness/ManualWithDefaultInputSets.yaml b/.harness/ManualWithDefaultInputSets.yaml new file mode 100644 index 00000000..fd97e965 --- /dev/null +++ b/.harness/ManualWithDefaultInputSets.yaml @@ -0,0 +1,17 @@ +version: 1 +name: Java with Gradle Remote Clone_1671536065452 +inputs: + foo: + type: string + desc: foo sample string +stages: + - name: Build and test Java app + type: ci + spec: + steps: + - name: Build + type: script + spec: + run: |- + echo "Hello world" + echo <+inputs.foo> diff --git a/.harness/NonCodeBasePipeline.yaml b/.harness/NonCodeBasePipeline.yaml new file mode 100644 index 00000000..8599c75d --- /dev/null +++ b/.harness/NonCodeBasePipeline.yaml @@ -0,0 +1,27 @@ +pipeline: + tags: {} + stages: + - stage: + name: stg1 + identifier: stg1 + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: RajathaK8 + namespace: rajatha-delegate-pr-env-may + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: step1 + identifier: step1 + spec: + connectorRef: account.harnessImage + image: alpine + shell: Sh + command: echo nonCodebaseTest diff --git a/.harness/OverlayInputSet.yaml b/.harness/OverlayInputSet.yaml new file mode 100644 index 00000000..e1289e20 --- /dev/null +++ b/.harness/OverlayInputSet.yaml @@ -0,0 +1,10 @@ +overlayInputSet: + name: OverlayInputSet + identifier: OverlayInputSet + orgIdentifier: default + projectIdentifier: RajathaTest3 + pipelineIdentifier: TestGitExp + inputSetReferences: + - InputsetPart1 + - InputsetGitexp + tags: {} diff --git a/.harness/PipelineWithInputs.yaml b/.harness/PipelineWithInputs.yaml new file mode 100644 index 00000000..e427dfcf --- /dev/null +++ b/.harness/PipelineWithInputs.yaml @@ -0,0 +1,18 @@ +version: 1 +name: Java with Gradle Remote Clone_1671536372940 +inputs: + foo: + type: string + desc: foo sample string + default: abc +stages: + - name: Build and test Java app + type: ci + spec: + steps: + - name: Build + type: script + spec: + run: |- + echo "Hello world" + echo <+inputs.foo> diff --git a/.harness/RemotePipeline1.yaml b/.harness/RemotePipeline1.yaml new file mode 100644 index 00000000..775db1f0 --- /dev/null +++ b/.harness/RemotePipeline1.yaml @@ -0,0 +1,31 @@ +pipeline: + name: RemotePipeline1 + identifier: RemotePipeline1 + projectIdentifier: RajathaQA + orgIdentifier: default + tags: {} + stages: + - stage: + name: stg1 + identifier: stg1 + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.cidelegatebuildfarm + namespace: harness-qa-delegate + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: step1 + identifier: step1 + spec: + connectorRef: account.harnessImage + image: alpine + shell: Sh + command: echo run1 diff --git a/.harness/RemotePipline123.yaml b/.harness/RemotePipline123.yaml new file mode 100644 index 00000000..f74efc12 --- /dev/null +++ b/.harness/RemotePipline123.yaml @@ -0,0 +1,33 @@ +pipeline: + name: RemotePipline123 + identifier: RemotePipline123 + projectIdentifier: rajathatest + orgIdentifier: default + storeType: REMOTE + remoteType: create + tags: {} + stages: + - stage: + name: ci + identifier: ci + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.k8s + namespace: harness-delegate-ng + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: foo + identifier: foo + spec: + connectorRef: account.harnessImage + image: alpine + shell: Sh + command: echo foobar551 diff --git a/.harness/TNHUREMOTE2.yaml b/.harness/TNHUREMOTE2.yaml new file mode 100644 index 00000000..a9482611 --- /dev/null +++ b/.harness/TNHUREMOTE2.yaml @@ -0,0 +1,38 @@ +pipeline: + name: TNHU-REMOTE2 + identifier: TNHUREMOTE2 + projectIdentifier: RajathaQA + orgIdentifier: default + storeType: REMOTE + remoteType: create + tags: {} + properties: + ci: + codebase: + connectorRef: RajathaGitHub + build: <+input> + stages: + - stage: + name: Build + identifier: Build + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: <+input> + namespace: <+input> + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: Run + identifier: Run + spec: + connectorRef: <+input> + image: <+input> + shell: Sh + command: echo 1 diff --git a/.harness/TNHUTest1.yaml b/.harness/TNHUTest1.yaml new file mode 100644 index 00000000..e8ec728f --- /dev/null +++ b/.harness/TNHUTest1.yaml @@ -0,0 +1,36 @@ +pipeline: + name: TNHU-Test1 + identifier: TNHUTest1 + projectIdentifier: RajathaQA + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: RajathaGitHub + build: <+input> + stages: + - stage: + name: Build + identifier: Build + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: <+input> + namespace: <+input> + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: Run + identifier: Run + spec: + connectorRef: <+input> + image: <+input> + shell: Sh + command: echo 1 diff --git a/.harness/Test.yaml b/.harness/Test.yaml new file mode 100644 index 00000000..8abdb414 --- /dev/null +++ b/.harness/Test.yaml @@ -0,0 +1,34 @@ +pipeline: + name: Test + identifier: Test + projectIdentifier: RajathaQA + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: RajathaGitHub + build: <+input> + stages: + - stage: + name: TEst + identifier: TEst + description: "" + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: Run + name: Run + identifier: Run + spec: + shell: Sh + command: echo hello + platform: + os: MacOS + arch: Arm64 + runtime: + type: Cloud + spec: {} diff --git a/.harness/TestGitExp.yaml b/.harness/TestGitExp.yaml new file mode 100644 index 00000000..7964d0ab --- /dev/null +++ b/.harness/TestGitExp.yaml @@ -0,0 +1,37 @@ +pipeline: + name: TestGitExp + identifier: TestGitExp + projectIdentifier: RajathaTest3 + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: GitHubRajatha + build: <+input> + stages: + - stage: + name: stage + identifier: stage + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.k8s + namespace: default + automountServiceAccountToken: true + nodeSelector: {} + os: Linux + execution: + steps: + - step: + type: Run + name: test1 + identifier: test1 + spec: + connectorRef: account.harnessImage + image: alpine + shell: Sh + command: <+input> diff --git a/.harness/TestGitExpWithOAuth.yaml b/.harness/TestGitExpWithOAuth.yaml new file mode 100644 index 00000000..d1efaa3e --- /dev/null +++ b/.harness/TestGitExpWithOAuth.yaml @@ -0,0 +1,33 @@ +pipeline: + name: TestGitExpWithOAuth + identifier: TestGitExpWithOAuth + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + stages: + - stage: + name: stg1 + identifier: stg1 + type: CI + spec: + cloneCodebase: true + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + execution: + steps: + - step: + type: Run + name: step1 + identifier: step1 + spec: + shell: Sh + command: <+input> + properties: + ci: + codebase: + connectorRef: GitHubOrgConnector + build: <+input> diff --git a/.harness/TestInputSetCustomer.yml b/.harness/TestInputSetCustomer.yml new file mode 100644 index 00000000..9f3dc013 --- /dev/null +++ b/.harness/TestInputSetCustomer.yml @@ -0,0 +1,26 @@ +inputSet: + identifier: "TestInputSetCustomer" + name: "TestInputSetCustomer" + orgIdentifier: "default" + projectIdentifier: "RajathaTest3" + pipeline: + identifier: "TestPipelineProd" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "stage1" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "step1" + type: "Run" + spec: + image: "alpine" diff --git a/.harness/TestP3.yaml b/.harness/TestP3.yaml new file mode 100644 index 00000000..eaa5836c --- /dev/null +++ b/.harness/TestP3.yaml @@ -0,0 +1,37 @@ +pipeline: + name: TestP3 + identifier: TestP3 + projectIdentifier: RajathaTest + orgIdentifier: default + tags: {} + stages: + - stage: + name: A1 + identifier: A1 + description: "" + type: Approval + spec: + execution: + steps: + - step: + name: A2 + identifier: A2 + type: HarnessApproval + timeout: 1d + spec: + approvalMessage: |- + Please review the following information + and approve the pipeline progression + includePipelineExecutionHistory: true + approvers: + minimumCount: 1 + disallowPipelineExecutor: false + userGroups: <+input> + approverInputs: [] + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: MarkAsSuccess diff --git a/.harness/TestPipeLineWithInputSet.yaml b/.harness/TestPipeLineWithInputSet.yaml new file mode 100644 index 00000000..29180c4c --- /dev/null +++ b/.harness/TestPipeLineWithInputSet.yaml @@ -0,0 +1,47 @@ +pipeline: + name: TestPipeLineWithInputSet + identifier: TestPipeLineWithInputSet + projectIdentifier: RajathaDemo + orgIdentifier: default + tags: {} + stages: + - stage: + name: stage1 + identifier: stage1 + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: RajathaK8 + namespace: rajatha-pr-demo + automountServiceAccountToken: false + nodeSelector: {} + containerSecurityContext: + runAsUser: "1000" + execution: + steps: + - step: + type: Run + name: test + identifier: test + spec: + connectorRef: account.harnessImage + image: alpine + shell: Sh + command: |- + echo "<+<+pipeline.variables.MAGIC>.toLowerCase()>" + echo pr-<+codebase.prNumber> + when: + pipelineStatus: Success + failureStrategies: [] + variables: + - name: MAGIC + type: String + value: <+input> + properties: + ci: + codebase: + connectorRef: testappandrepo + build: <+input> diff --git a/.harness/TestPipeline.yaml b/.harness/TestPipeline.yaml new file mode 100644 index 00000000..c2251c7d --- /dev/null +++ b/.harness/TestPipeline.yaml @@ -0,0 +1,46 @@ +pipeline: + name: TestPipeline + identifier: TestPipeline + projectIdentifier: RajathaQA + orgIdentifier: default + tags: {} + stages: + - stage: + name: stg1 + identifier: stg1 + description: "" + type: Approval + spec: + execution: + steps: + - step: + name: approval1 + identifier: approval1 + type: HarnessApproval + timeout: 1d + spec: + approvalMessage: |- + Please review the following information + and approve the pipeline progression + includePipelineExecutionHistory: true + approvers: + minimumCount: 1 + disallowPipelineExecutor: false + userGroups: <+input> + approverInputs: [] + - step: + type: ShellScript + name: step1 + identifier: step1 + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo test + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + tags: {} diff --git a/.harness/TestPipelineCustomer.yaml b/.harness/TestPipelineCustomer.yaml new file mode 100644 index 00000000..ee6fdf59 --- /dev/null +++ b/.harness/TestPipelineCustomer.yaml @@ -0,0 +1,37 @@ +pipeline: + name: TestPipelineProd + identifier: TestPipelineProd + projectIdentifier: RajathaTest3 + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: GitHubRajatha + build: <+input> + stages: + - stage: + name: stage1 + identifier: stage1 + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.k8s + namespace: default + automountServiceAccountToken: true + nodeSelector: {} + os: Linux + execution: + steps: + - step: + type: Run + name: step1 + identifier: step1 + spec: + connectorRef: account.harnessImage + image: <+input> + shell: Sh + command: echo test diff --git a/.harness/abc.yaml b/.harness/abc.yaml new file mode 100644 index 00000000..a7162243 --- /dev/null +++ b/.harness/abc.yaml @@ -0,0 +1,27 @@ +inputSet: + identifier: "cfdgdfg" + name: "cfdgdfg" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "GitCloneIssue" + stages: + - stage: + identifier: "Stage1" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "git_cmd" + type: "Run" + spec: + envVariables: + abc: "fdgdfgfd" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "dfgdfg" diff --git a/.harness/asdjkasd.yaml b/.harness/asdjkasd.yaml new file mode 100644 index 00000000..a95ce25b --- /dev/null +++ b/.harness/asdjkasd.yaml @@ -0,0 +1,36 @@ +pipeline: + name: asdjkasd + identifier: asdjkasd + projectIdentifier: RajathaTest + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: RajathaGitHub + build: <+input> + stages: + - stage: + name: testing + identifier: testing + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: RajathaK8 + namespace: rajatha-delegate-pr-env + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: testing + identifier: testing + spec: + connectorRef: account.harnessImage + image: <+input> + shell: Sh + command: <+input> diff --git a/.harness/branch-full.yaml b/.harness/branch-full.yaml new file mode 100644 index 00000000..fe4d522f --- /dev/null +++ b/.harness/branch-full.yaml @@ -0,0 +1,32 @@ +inputSet: + identifier: "branchfull" + name: "branch-full" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.cidelegate" + namespace: "branch-full" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.selfSignedDockerRegistry" + image: "branch-full" diff --git a/.harness/branch-partial.yaml b/.harness/branch-partial.yaml new file mode 100644 index 00000000..c8f5ce13 --- /dev/null +++ b/.harness/branch-partial.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "branchpartial" + name: "branch-partial" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "branch1" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/codeBase.yml b/.harness/codeBase.yml new file mode 100644 index 00000000..99de4d44 --- /dev/null +++ b/.harness/codeBase.yml @@ -0,0 +1,14 @@ +inputSet: + identifier: "codeBase" + name: "codeBase" + orgIdentifier: "default" + projectIdentifier: "RajathaDemo" + pipeline: + identifier: "TestPipeLineWithInputSet" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "patch-1" diff --git a/.harness/customerinputsetreplica.yaml b/.harness/customerinputsetreplica.yaml new file mode 100644 index 00000000..e1235ded --- /dev/null +++ b/.harness/customerinputsetreplica.yaml @@ -0,0 +1,50 @@ +pipeline: + name: customerinputsetreplica + identifier: customerinputsetreplica + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + stages: + - stage: + name: Build + identifier: Build + description: "" + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: rajathak8 + namespace: rajatha-delegate-april + automountServiceAccountToken: true + nodeSelector: {} + os: Linux + execution: + steps: + - step: + type: Run + name: Build + identifier: Build + spec: + connectorRef: dockerrajatha + image: busybox + shell: Sh + command: echo "build" + when: + stageStatus: Success + condition: <+input> + failureStrategies: [] + failureStrategies: + - onFailure: + errors: + - Unknown + - Timeout + action: + type: Retry + spec: + retryCount: 1 + onRetryFailure: + action: + type: Abort + diff --git a/.harness/customerreplicainputset.yaml b/.harness/customerreplicainputset.yaml new file mode 100644 index 00000000..197da2c2 --- /dev/null +++ b/.harness/customerreplicainputset.yaml @@ -0,0 +1,19 @@ +inputSet: + identifier: "customerreplicainputset" + name: "customerreplicainputset" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "customerinputsetreplica" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "Build" + type: "Run" + when: + condition: " " diff --git a/.harness/dfgdfg.yaml b/.harness/dfgdfg.yaml new file mode 100644 index 00000000..dea7e5c0 --- /dev/null +++ b/.harness/dfgdfg.yaml @@ -0,0 +1,27 @@ +inputSet: + identifier: "dfgdfg" + pipeline: + identifier: "GitCloneIssue" + stages: + - stage: + identifier: "Stage1" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "git_cmd" + type: "Run" + spec: + envVariables: + abc: "asdgfdsfgfdg" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "dfgdfg" + name: "dfgdfg" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" diff --git a/.harness/dineshtest.yaml b/.harness/dineshtest.yaml new file mode 100644 index 00000000..6a080593 --- /dev/null +++ b/.harness/dineshtest.yaml @@ -0,0 +1,26 @@ +inputSet: + identifier: "testdinesh" + name: "testdinesh" + orgIdentifier: "default" + projectIdentifier: "RajathaTest3" + pipeline: + identifier: "TestGitExp" + properties: + ci: + codebase: + build: + type: "PR" + spec: + number: "<+trigger.prNumber>" + stages: + - stage: + identifier: "stage" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "test1" + type: "Run" + spec: + command: "echo foo" diff --git a/.harness/dsfdsf.yaml b/.harness/dsfdsf.yaml new file mode 100644 index 00000000..754f4e28 --- /dev/null +++ b/.harness/dsfdsf.yaml @@ -0,0 +1,27 @@ +inputSet: + name: sdafdsf + identifier: sdafdsf + orgIdentifier: default + projectIdentifier: RajathaTest2 + pipeline: + identifier: xzcxzv + properties: + ci: + codebase: + build: + type: branch + spec: + branch: <+trigger.branch> + stages: + - stage: + identifier: xcvvcx + type: CI + spec: + execution: + steps: + - step: + identifier: xzvzx + type: Run + spec: + connectorRef: GithubDockerRegistry + image: safdsfdsf diff --git a/.harness/envInputSet.yaml b/.harness/envInputSet.yaml new file mode 100644 index 00000000..5a7bd296 --- /dev/null +++ b/.harness/envInputSet.yaml @@ -0,0 +1,20 @@ +inputSet: + identifier: "EnvInputSet" + name: "EnvInputSet" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "GitCloneIssue" + stages: + - stage: + identifier: "Stage1" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "git_cmd" + type: "Run" + spec: + envVariables: + abc: "foo" diff --git a/.harness/full.yaml b/.harness/full.yaml new file mode 100644 index 00000000..8397823b --- /dev/null +++ b/.harness/full.yaml @@ -0,0 +1,32 @@ +inputSet: + identifier: "Full" + name: "Full" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "full" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" + namespace: "full" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.DockerArtifactory" + image: "nginx" diff --git a/.harness/iiss1.yaml b/.harness/iiss1.yaml new file mode 100644 index 00000000..500eba0a --- /dev/null +++ b/.harness/iiss1.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "iiss1" + name: "iiss1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/iiss2.yaml b/.harness/iiss2.yaml new file mode 100644 index 00000000..bdb3e944 --- /dev/null +++ b/.harness/iiss2.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "iiss2" + name: "iiss2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" diff --git a/.harness/inputSetRefs1.yaml b/.harness/inputSetRefs1.yaml new file mode 100644 index 00000000..5e377aaa --- /dev/null +++ b/.harness/inputSetRefs1.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "inputSetRefs1" + name: "inputSetRefs1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.cidelegatebuildfarm" diff --git a/.harness/inputset0011.yaml b/.harness/inputset0011.yaml new file mode 100644 index 00000000..05a1d866 --- /dev/null +++ b/.harness/inputset0011.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "inputset0011" + name: "inputset0011" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "PR" + spec: + number: "<+trigger.prNumber>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" diff --git a/.harness/inputset1.yaml b/.harness/inputset1.yaml new file mode 100644 index 00000000..daf76765 --- /dev/null +++ b/.harness/inputset1.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "inputset1" + name: "inputset1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/inputset2.yaml b/.harness/inputset2.yaml new file mode 100644 index 00000000..ef3c2318 --- /dev/null +++ b/.harness/inputset2.yaml @@ -0,0 +1,31 @@ +inputSet: + identifier: "inputset2" + name: "inputset2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.harnessImage" + image: "kkkkkk" diff --git a/.harness/inputsfddsf.yaml b/.harness/inputsfddsf.yaml new file mode 100644 index 00000000..7a5b11df --- /dev/null +++ b/.harness/inputsfddsf.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "inputsfddsf" + name: "inputsfddsf" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "test2tractable" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/inpytsetzckls.yaml b/.harness/inpytsetzckls.yaml new file mode 100644 index 00000000..0bec51b1 --- /dev/null +++ b/.harness/inpytsetzckls.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "dsfgfds" + name: "dsfgfds" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "DockerImagerCreationPipeline" + properties: + ci: + codebase: + build: + type: "PR" + spec: + number: "<+trigger.prNumber>" diff --git a/.harness/inset2.yaml b/.harness/inset2.yaml new file mode 100644 index 00000000..b4a563a1 --- /dev/null +++ b/.harness/inset2.yaml @@ -0,0 +1,32 @@ +inputSet: + identifier: "inset2" + name: "inset2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "PR" + spec: + number: "<+trigger.prNumber>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" + namespace: "inset2" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.selfSignedDockerRegistry" + image: "inset2" diff --git a/.harness/inset3.yaml b/.harness/inset3.yaml new file mode 100644 index 00000000..11861c2f --- /dev/null +++ b/.harness/inset3.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "iset3" + name: "iset3" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/is11.yaml b/.harness/is11.yaml new file mode 100644 index 00000000..fc0c58f7 --- /dev/null +++ b/.harness/is11.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "is11" + name: "is11" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "is11" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/is12.yaml b/.harness/is12.yaml new file mode 100644 index 00000000..cf3087be --- /dev/null +++ b/.harness/is12.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "is12" + name: "is12" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "is12" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" diff --git a/.harness/iset1.yaml b/.harness/iset1.yaml new file mode 100644 index 00000000..e7a6eefb --- /dev/null +++ b/.harness/iset1.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "iset1" + name: "iset1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "iset1" diff --git a/.harness/maininputset.yaml b/.harness/maininputset.yaml new file mode 100644 index 00000000..7c2aeee1 --- /dev/null +++ b/.harness/maininputset.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "MainBranch" + name: "MainBranch" + orgIdentifier: "default" + projectIdentifier: "RajathaTest2" + pipeline: + identifier: "GitCloneIssue" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "main" diff --git a/.harness/new1.yaml b/.harness/new1.yaml new file mode 100644 index 00000000..3aea0d65 --- /dev/null +++ b/.harness/new1.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "new1" + name: "new1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/new11111.yaml b/.harness/new11111.yaml new file mode 100644 index 00000000..25b6ce77 --- /dev/null +++ b/.harness/new11111.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "new11111" + name: "new11111" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "new11111" diff --git a/.harness/new2.yaml b/.harness/new2.yaml new file mode 100644 index 00000000..0daa4bf2 --- /dev/null +++ b/.harness/new2.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "new2" + name: "new2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/new3.yaml b/.harness/new3.yaml new file mode 100644 index 00000000..354494e8 --- /dev/null +++ b/.harness/new3.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "new3" + name: "new3" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/new4.yaml b/.harness/new4.yaml new file mode 100644 index 00000000..e141a4d5 --- /dev/null +++ b/.harness/new4.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "new4" + name: "new4" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/new5.yaml b/.harness/new5.yaml new file mode 100644 index 00000000..3e40a74d --- /dev/null +++ b/.harness/new5.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "new5" + name: "new5" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "mybranch" diff --git a/.harness/overlayInputSet.yaml b/.harness/overlayInputSet.yaml new file mode 100644 index 00000000..753f28df --- /dev/null +++ b/.harness/overlayInputSet.yaml @@ -0,0 +1,10 @@ +overlayInputSet: + name: overlayInputSet + identifier: overlayInputSet + orgIdentifier: default + projectIdentifier: RajathaTest2 + pipelineIdentifier: GitCloneIssue + inputSetReferences: + - EnvInputSet + - MainBranch + tags: {} diff --git a/.harness/partial.yaml b/.harness/partial.yaml new file mode 100644 index 00000000..c5f7f873 --- /dev/null +++ b/.harness/partial.yaml @@ -0,0 +1,24 @@ +inputSet: + identifier: "Partial" + name: "Partial" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "partial-branch" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.cidelegatebuildfarm" + namespace: "partial" diff --git a/.harness/partial2.yaml b/.harness/partial2.yaml new file mode 100644 index 00000000..3bf54263 --- /dev/null +++ b/.harness/partial2.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "partial2" + name: "partial2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "partial2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" diff --git a/.harness/pipeline2.yaml b/.harness/pipeline2.yaml new file mode 100644 index 00000000..1b1dc47f --- /dev/null +++ b/.harness/pipeline2.yaml @@ -0,0 +1,15 @@ +pipeline: + name: pipeline2 + identifier: pipeline2 + template: + templateRef: test1pipeline + versionLabel: "1" + templateInputs: + properties: + ci: + codebase: + repoName: <+input> + build: <+input> + tags: {} + projectIdentifier: RajathaTest2 + orgIdentifier: default diff --git a/.harness/pipelines/testgo-1683213343452.yaml b/.harness/pipelines/testgo-1683213343452.yaml new file mode 100644 index 00000000..f184a2d0 --- /dev/null +++ b/.harness/pipelines/testgo-1683213343452.yaml @@ -0,0 +1,51 @@ +pipeline: + identifier: Build_testgo_1683213351552 + name: Build testgo + orgIdentifier: default + projectIdentifier: default_project + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github + repoName: rajatharanganath/testgo + 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 diff --git a/.harness/pipelines/testgo-1703240117549.yaml b/.harness/pipelines/testgo-1703240117549.yaml new file mode 100644 index 00000000..ea4d2548 --- /dev/null +++ b/.harness/pipelines/testgo-1703240117549.yaml @@ -0,0 +1,51 @@ +pipeline: + identifier: Build_rajatharanganath_testgo_1703240127905 + name: Build testgo + orgIdentifier: default + projectIdentifier: SatyaTest + properties: + ci: + codebase: + build: <+input> + connectorRef: account.oAuthRajatha + repoName: rajatharanganath/testgo + 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 diff --git a/.harness/pipelines/testgo-1744207418450.yaml b/.harness/pipelines/testgo-1744207418450.yaml new file mode 100644 index 00000000..ad55ff60 --- /dev/null +++ b/.harness/pipelines/testgo-1744207418450.yaml @@ -0,0 +1,54 @@ +pipeline: + identifier: Build_rajatharanganath_testgo_1744207423831 + name: Build testgo + orgIdentifier: default + projectIdentifier: default_project + properties: + ci: + codebase: + build: <+input> + connectorRef: account.Github_OAuth_1744207402798 + repoName: rajatharanganath/testgo + stages: + - stage: + identifier: build + name: build + spec: + caching: + enabled: true + cloneCodebase: true + execution: + steps: + - step: + identifier: gobuild + name: go_build + spec: + command: go build + timeout: "" + type: Run + - step: + identifier: gotestcoverage + name: go_test_coverage + spec: + command: go test -coverprofile=coverage.out ./... + timeout: "" + type: Run + - step: + identifier: gotestreport + name: go_test_report + spec: + command: "export GOBIN=/home/harness/go/bin\n\t\texport PATH=/home/harness/go/bin:$PATH\n\t\techo $PATH\n\t\tgo install github.com/jstemmer/go-junit-report/v2@latest\n\t\tgo test -v 2>&1 ./... | go-junit-report -set-exit-code > report.xml" + reports: + spec: + paths: + - /harness/report.xml + type: JUnit + timeout: "" + type: Run + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + type: CI diff --git a/.harness/pipelines/testgo.yaml b/.harness/pipelines/testgo.yaml new file mode 100644 index 00000000..4f7df86c --- /dev/null +++ b/.harness/pipelines/testgo.yaml @@ -0,0 +1,33 @@ +pipeline: + name: Build testgo + identifier: Build_testgo_1681990286535 + projectIdentifier: default_project + orgIdentifier: default + stages: + - stage: + name: Build + identifier: Build + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: Run + name: Echo Welcome Message + identifier: Echo_Welcome_Message + spec: + shell: Sh + command: echo "Welcome to Harness CI" + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + properties: + ci: + codebase: + connectorRef: account.Github + repoName: rajatharanganath/testgo + build: <+input> diff --git a/.harness/rajathaimportexporttest.yaml b/.harness/rajathaimportexporttest.yaml new file mode 100644 index 00000000..67487a8e --- /dev/null +++ b/.harness/rajathaimportexporttest.yaml @@ -0,0 +1,31 @@ +pipeline: + name: rajathaimportexporttest + identifier: rajathaimportexporttest + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + stages: + - stage: + name: zsafdsf + identifier: zsafdsf + description: "" + type: CI + spec: + cloneCodebase: false + caching: + enabled: true + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + execution: + steps: + - step: + type: Run + name: Run_1 + identifier: Run_1 + spec: + shell: Sh + command: echo test diff --git a/.harness/sdfsdf.yaml b/.harness/sdfsdf.yaml new file mode 100644 index 00000000..f54ef4cf --- /dev/null +++ b/.harness/sdfsdf.yaml @@ -0,0 +1,19 @@ +inputSet: + name: adsasfsfsaf + identifier: adsasfsfsaf + orgIdentifier: default + projectIdentifier: RajathaTest2 + pipeline: + identifier: DockerImagerCreationPipeline + stages: + - stage: + identifier: build + type: CI + spec: + execution: + steps: + - step: + identifier: build_and_push + type: BuildAndPushDockerRegistry + spec: + repo: rajatharanganath/ciquickstart diff --git a/.harness/sdfsdfdsf.yaml b/.harness/sdfsdfdsf.yaml new file mode 100644 index 00000000..1b5b4d1c --- /dev/null +++ b/.harness/sdfsdfdsf.yaml @@ -0,0 +1,20 @@ +inputSet: + name: sdfsdfdsf + identifier: sdfsdfdsf + orgIdentifier: default + projectIdentifier: RajathaTest2 + pipeline: + identifier: xzcxzv + stages: + - stage: + identifier: xcvvcx + type: CI + spec: + execution: + steps: + - step: + identifier: xzvzx + type: Run + spec: + connectorRef: GCSConnector + image: sdfdsf diff --git a/.harness/sfdsf.yaml b/.harness/sfdsf.yaml new file mode 100644 index 00000000..b5f7e245 --- /dev/null +++ b/.harness/sfdsf.yaml @@ -0,0 +1,36 @@ +pipeline: + name: sfdsf + identifier: sfdsf + projectIdentifier: RajathaTest + orgIdentifier: default + tags: {} + stages: + - stage: + name: stg1 + identifier: stg1 + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: RajathaK8 + namespace: rajatha-pr-demo + automountServiceAccountToken: true + nodeSelector: {} + execution: + steps: + - step: + type: Run + name: step1 + identifier: step1 + spec: + connectorRef: account.harnessImage + image: alpine + shell: Sh + command: |- + echo testapp + echo <+codebase.targetBranch> + echo <+codebase.sourceBranch> + echo <+codebase.repoUrl> + echo 358pm diff --git a/.harness/t10custom.yaml b/.harness/t10custom.yaml new file mode 100644 index 00000000..740a0105 --- /dev/null +++ b/.harness/t10custom.yaml @@ -0,0 +1,20 @@ +inputSet: + identifier: "t10custom" + name: "t10custom" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.DockerArtifactory" + image: "t10custom" diff --git a/.harness/t11.yaml b/.harness/t11.yaml new file mode 100644 index 00000000..25846e2d --- /dev/null +++ b/.harness/t11.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "t11" + name: "t11" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" diff --git a/.harness/t1111.yaml b/.harness/t1111.yaml new file mode 100644 index 00000000..f03aba01 --- /dev/null +++ b/.harness/t1111.yaml @@ -0,0 +1,17 @@ +inputSet: + identifier: "t11111" + name: "t11111" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "default" diff --git a/.harness/t12.yaml b/.harness/t12.yaml new file mode 100644 index 00000000..b71c3e7a --- /dev/null +++ b/.harness/t12.yaml @@ -0,0 +1,16 @@ +inputSet: + identifier: "t12" + name: "t12" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" diff --git a/.harness/t123.yaml b/.harness/t123.yaml new file mode 100644 index 00000000..7e3b9ac4 --- /dev/null +++ b/.harness/t123.yaml @@ -0,0 +1,16 @@ +inputSet: + identifier: "t123" + name: "t123" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/t13.yaml b/.harness/t13.yaml new file mode 100644 index 00000000..0ce5ed7b --- /dev/null +++ b/.harness/t13.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "t13" + name: "t13" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "t13" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.cidelegate" diff --git a/.harness/t14.yaml b/.harness/t14.yaml new file mode 100644 index 00000000..0ebbbae2 --- /dev/null +++ b/.harness/t14.yaml @@ -0,0 +1,20 @@ +inputSet: + identifier: "t14" + name: "t14" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.selfSignedDockerRegistry" + image: "t14" diff --git a/.harness/t15.yaml b/.harness/t15.yaml new file mode 100644 index 00000000..82657c36 --- /dev/null +++ b/.harness/t15.yaml @@ -0,0 +1,32 @@ +inputSet: + identifier: "t15" + name: "t15" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "t15" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "t15" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.harnessImage" + image: "t15" diff --git a/.harness/t222.yaml b/.harness/t222.yaml new file mode 100644 index 00000000..48552479 --- /dev/null +++ b/.harness/t222.yaml @@ -0,0 +1,31 @@ +inputSet: + identifier: "t222222" + name: "t222222" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "t2222222" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.selfSignedDockerRegistry" + image: "NewInputSetModal" diff --git a/.harness/t2222.yaml b/.harness/t2222.yaml new file mode 100644 index 00000000..d61894c0 --- /dev/null +++ b/.harness/t2222.yaml @@ -0,0 +1,24 @@ +inputSet: + identifier: "t2222222" + name: "t2222222" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "d1" diff --git a/.harness/t3.yaml b/.harness/t3.yaml new file mode 100644 index 00000000..650f8e3c --- /dev/null +++ b/.harness/t3.yaml @@ -0,0 +1,17 @@ +inputSet: + identifier: "t3" + name: "t3" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "d1" diff --git a/.harness/t31.yaml b/.harness/t31.yaml new file mode 100644 index 00000000..d62c2c3c --- /dev/null +++ b/.harness/t31.yaml @@ -0,0 +1,24 @@ +inputSet: + identifier: "t31" + name: "t31" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "d1" diff --git a/.harness/t3443.yaml b/.harness/t3443.yaml new file mode 100644 index 00000000..191dd384 --- /dev/null +++ b/.harness/t3443.yaml @@ -0,0 +1,24 @@ +inputSet: + identifier: "t333" + name: "t333" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "t3" diff --git a/.harness/t4.yaml b/.harness/t4.yaml new file mode 100644 index 00000000..df1ca324 --- /dev/null +++ b/.harness/t4.yaml @@ -0,0 +1,32 @@ +inputSet: + identifier: "t4" + name: "t4" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "t4" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "t4" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.harnessImage" + image: "t4" diff --git a/.harness/t66.yaml b/.harness/t66.yaml new file mode 100644 index 00000000..163dbbe9 --- /dev/null +++ b/.harness/t66.yaml @@ -0,0 +1,17 @@ +inputSet: + identifier: "t66" + name: "t66" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "t66" diff --git a/.harness/t777.yaml b/.harness/t777.yaml new file mode 100644 index 00000000..c7e1be43 --- /dev/null +++ b/.harness/t777.yaml @@ -0,0 +1,16 @@ +inputSet: + identifier: "t7777" + name: "t7777" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/t8888.yaml b/.harness/t8888.yaml new file mode 100644 index 00000000..7e4ebbf8 --- /dev/null +++ b/.harness/t8888.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "t888888" + name: "t888888" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "tag" + spec: + tag: "<+trigger.tag>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/t9999.yaml b/.harness/t9999.yaml new file mode 100644 index 00000000..22a1a8ff --- /dev/null +++ b/.harness/t9999.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "t99999" + name: "t99999" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "tag" + spec: + tag: "<+trigger.tag>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/tag1.yaml b/.harness/tag1.yaml new file mode 100644 index 00000000..155f6fdb --- /dev/null +++ b/.harness/tag1.yaml @@ -0,0 +1,14 @@ +inputSet: + identifier: "tag1" + name: "tag1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "tag" + spec: + tag: "<+trigger.tag>" diff --git a/.harness/test1.yaml b/.harness/test1.yaml new file mode 100644 index 00000000..0e07a9e2 --- /dev/null +++ b/.harness/test1.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "test1" + name: "test1" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/test11.yaml b/.harness/test11.yaml new file mode 100644 index 00000000..978fad05 --- /dev/null +++ b/.harness/test11.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "test11" + name: "test11" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "<+trigger.branch>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" diff --git a/.harness/test2.yaml b/.harness/test2.yaml new file mode 100644 index 00000000..905c1a04 --- /dev/null +++ b/.harness/test2.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "test2" + name: "test2" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "tag" + spec: + tag: "<+trigger.tag>" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.cidelegate" diff --git a/.harness/test22222.yaml b/.harness/test22222.yaml new file mode 100644 index 00000000..1e122f14 --- /dev/null +++ b/.harness/test22222.yaml @@ -0,0 +1,23 @@ +inputSet: + identifier: "test2222" + name: "test2222" + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "test2222" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.Testconnector" diff --git a/.harness/test34.yaml b/.harness/test34.yaml new file mode 100644 index 00000000..e90f1598 --- /dev/null +++ b/.harness/test34.yaml @@ -0,0 +1,33 @@ +inputSet: + identifier: "test34" + name: "test34" + tags: {} + orgIdentifier: "default" + projectIdentifier: "RajathaQA" + pipeline: + identifier: "TNHUREMOTE2" + properties: + ci: + codebase: + build: + type: "branch" + spec: + branch: "test34" + stages: + - stage: + identifier: "Build" + type: "CI" + spec: + infrastructure: + type: "KubernetesDirect" + spec: + connectorRef: "account.klkl" + namespace: "test34" + execution: + steps: + - step: + identifier: "Run" + type: "Run" + spec: + connectorRef: "account.selfSignedDockerRegistry" + image: "test34" diff --git a/.harness/testremotedebug.yaml b/.harness/testremotedebug.yaml new file mode 100644 index 00000000..a80b8cfe --- /dev/null +++ b/.harness/testremotedebug.yaml @@ -0,0 +1,29 @@ +pipeline: + name: testremotedebug + identifier: testremotedebug + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + stages: + - stage: + name: test + identifier: test + description: "" + type: CI + spec: + cloneCodebase: false + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + execution: + steps: + - step: + type: Run + name: Run_1 + identifier: Run_1 + spec: + shell: Sh + command: echo 1 diff --git a/README.md b/README.md index f85e411d..e276d5d1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # HelloWorldGoServer -GO + Docker + unit tests +GO + Docker + unit tests + + + ++ ## Running the app locally @@ -12,7 +12,7 @@ $ ./go-sample-app ```bash $ curl http://localhost:8080?name=Nofar -Hello, Nofar +Hello, Nofar Test1 ``` diff --git a/conflict.text b/conflict.text index 9fbf4311..c1ef688d 100644 --- a/conflict.text +++ b/conflict.text @@ -15,4 +15,4 @@ conflict.text vconflict.text conflict.text conflict.text -conflict.text +conflict.textdsafadsf diff --git a/exp/.harness/BitBucketTest.yaml b/exp/.harness/BitBucketTest.yaml index 052b4003..2966e460 100644 --- a/exp/.harness/BitBucketTest.yaml +++ b/exp/.harness/BitBucketTest.yaml @@ -1,251 +1,263 @@ pipeline: - name: BitBucketTest - identifier: BitBucketTest - projectIdentifier: RajathaTest2 - orgIdentifier: default - tags: {} - stages: - - stage: - name: build - identifier: build - type: CI + name: BitBucketTest + identifier: BitBucketTest + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + stages: + - stage: + name: build + identifier: build + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: rajathak8 + namespace: rajatha-delegate-april + automountServiceAccountToken: true + nodeSelector: {} + containerSecurityContext: + allowPrivilegeEscalation: false + runAsUser: "1000" + os: Linux + execution: + steps: + - step: + type: Run + name: run + identifier: run + spec: + connectorRef: dockerrajatha + image: alpine + shell: Sh + command: |- + #!/bin/sh + echo <+codebase.targetBranch> + echo <+codebase.sourceBranch> + export LATEST_BRANCH="master" + if [ <+codebase.targetBranch> == "master" ] + then + export LATEST_BRANCH="heelotag, master" + else + export LATEST_BRANCH="hellotag, non-master" + fi + echo <+codebase.branch> + outputVariables: + - name: LATEST_BRANCH + variables: + - name: stageVar + type: String + value: <+input>.allowedValues(100gi,200gi,300gi,400gi) + - stage: + name: build2 + identifier: build2 + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: rajathak8 + namespace: delegate + nodeSelector: {} + os: Linux + execution: + steps: + - step: + type: Run + name: stg2 + identifier: stg2 + spec: + connectorRef: dockerrajatha + image: alpine + shell: Sh + command: echo test + - stage: + name: cdstg + identifier: cdstg + description: "" + type: Deployment + spec: + serviceConfig: + serviceRef: lscjf + serviceDefinition: spec: - cloneCodebase: false - infrastructure: - type: KubernetesDirect - spec: - connectorRef: rajathak8 - namespace: rajatha-delegate-april - automountServiceAccountToken: true - nodeSelector: {} - containerSecurityContext: - allowPrivilegeEscalation: false - runAsUser: "1000" - os: Linux - execution: - steps: - - step: - type: Run - name: run - identifier: run - spec: - connectorRef: dockerrajatha - image: alpine - shell: Sh - command: |- - #!/bin/sh - echo <+codebase.targetBranch> - echo <+codebase.sourceBranch> - export LATEST_BRANCH="master" - if [ <+codebase.targetBranch> == "master" ] - then - export LATEST_BRANCH="heelotag, master" - else - export LATEST_BRANCH="hellotag, non-master" - fi - echo <+codebase.branch> - outputVariables: - - name: LATEST_BRANCH - variables: - - name: stageVar - type: String - value: <+input>.allowedValues(100gi,200gi,300gi,400gi) - - stage: - name: build2 - identifier: build2 - type: CI + variables: [] + type: Ssh + infrastructure: + environmentRef: dev + infrastructureDefinition: + type: KubernetesDirect spec: - cloneCodebase: true - infrastructure: - type: KubernetesDirect + connectorRef: rajathak8 + namespace: rajatha-delegate-april + releaseName: release-<+INFRA_KEY> + allowSimultaneousDeployments: false + execution: + steps: + - step: + type: ShellScript + name: dsfdf + identifier: dsfdf + spec: + shell: Bash + onDelegate: true + source: + type: Inline spec: - connectorRef: rajathak8 - namespace: delegate - nodeSelector: {} - os: Linux - execution: + script: echo <+pipeline.stages.build.spec.execution.steps.run.output.outputVariables.LATEST_BRANCH> + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + - parallel: + - stepGroup: + name: step_group1 + identifier: step_group1 steps: - - step: - type: Run - name: stg2 - identifier: stg2 + - step: + type: ShellScript + name: run1 + identifier: run1 + spec: + shell: Bash + onDelegate: true + source: + type: Inline spec: - connectorRef: dockerrajatha - image: alpine - shell: Sh - command: echo test - - stage: - name: cdstg - identifier: cdstg - description: "" - type: Deployment - spec: - serviceConfig: - serviceRef: lscjf - serviceDefinition: - spec: - variables: [] - type: Ssh - infrastructure: - environmentRef: dev - infrastructureDefinition: - type: KubernetesDirect - spec: - connectorRef: rajathak8 - namespace: rajatha-delegate-april - releaseName: release-<+INFRA_KEY> - allowSimultaneousDeployments: false - execution: + script: echo run1 + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + - step: + type: ShellScript + name: run2 + identifier: run2 + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo run1 duplicate + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + - stepGroup: + name: step_group2 + identifier: step_group2 steps: - - step: + - parallel: + - step: type: ShellScript - name: dsfdf - identifier: dsfdf + name: run3 + identifier: run3 spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo <+pipeline.stages.build.spec.execution.steps.run.output.outputVariables.LATEST_BRANCH> - environmentVariables: [] - outputVariables: [] - executionTarget: {} + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo run3 + environmentVariables: [] + outputVariables: [] + executionTarget: {} timeout: 10m - - parallel: - - stepGroup: - name: step_group1 - identifier: step_group1 - steps: - - step: - type: ShellScript - name: run1 - identifier: run1 - spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run1 - environmentVariables: [] - outputVariables: [] - executionTarget: {} - timeout: 10m - - step: - type: ShellScript - name: run2 - identifier: run2 - spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run1 duplicate - environmentVariables: [] - outputVariables: [] - executionTarget: {} - timeout: 10m - - stepGroup: - name: step_group2 - identifier: step_group2 - steps: - - parallel: - - step: - type: ShellScript - name: run3 - identifier: run3 - spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run3 - environmentVariables: [] - outputVariables: [] - executionTarget: {} - timeout: 10m - - step: - type: ShellScript - name: run4 - identifier: run4 - spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run4 - environmentVariables: [] - outputVariables: [] - executionTarget: {} - timeout: 10m - - step: - type: ShellScript - name: run6 - identifier: run6 - spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run6 - environmentVariables: [] - outputVariables: [] - executionTarget: {} - timeout: 10m - - step: - type: ShellScript - name: run7 - identifier: run7 - spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run7 - environmentVariables: [] - outputVariables: [] - executionTarget: {} - timeout: 10m - failureStrategies: [] - - step: + - step: type: ShellScript - name: run5 - identifier: run5 + name: run4 + identifier: run4 spec: - shell: Bash - onDelegate: true - source: - type: Inline - spec: - script: echo run1 outside step group - environmentVariables: [] - outputVariables: [] - executionTarget: {} + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo run4 + environmentVariables: [] + outputVariables: [] + executionTarget: {} timeout: 10m - rollbackSteps: [] - tags: {} - failureStrategies: - - onFailure: - errors: - - AllErrors - action: - type: StageRollback - when: - pipelineStatus: Success - condition: <+stage.pipeline.variables.magic> == "RAJATHA" - variables: - - name: magic - type: String - value: <+input>.allowedValues(110gi,200gi,300gi,400GI) - properties: - ci: - codebase: - connectorRef: account.BBSaas - build: <+input> - allowStageExecutions: true + - step: + type: ShellScript + name: run6 + identifier: run6 + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo run6 + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + - step: + type: ShellScript + name: run7 + identifier: run7 + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo run7 + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + failureStrategies: [] + - step: + type: ShellScript + name: run5 + identifier: run5 + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo run1 outside step group + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + rollbackSteps: [] + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback + when: + pipelineStatus: Success + condition: <+stage.pipeline.variables.magic> == "RAJATHA" + - stage: + name: dfsgfdg + identifier: dfsgfdg + template: + templateRef: xzcxczv + versionLabel: "1" + templateInputs: + type: CI + variables: + - name: rajatha + type: String + value: <+input> + variables: + - name: magic + type: String + value: <+input>.allowedValues(110gi,200gi,300gi,400GI) + properties: + ci: + codebase: + connectorRef: account.BBSaas + build: <+input> + allowStageExecutions: true diff --git a/exp/.harness/DockerImagerCreationPipeline.yaml b/exp/.harness/DockerImagerCreationPipeline.yaml index a5f552e0..8ca56371 100644 --- a/exp/.harness/DockerImagerCreationPipeline.yaml +++ b/exp/.harness/DockerImagerCreationPipeline.yaml @@ -4,28 +4,13 @@ pipeline: projectIdentifier: RajathaTest2 orgIdentifier: default tags: {} - properties: - ci: - codebase: - connectorRef: githubrajatha - build: <+input> stages: - stage: name: build identifier: build type: CI spec: - cloneCodebase: true - infrastructure: - type: KubernetesDirect - spec: - connectorRef: rajathak8 - namespace: rajatha-delegate-april - automountServiceAccountToken: true - nodeSelector: {} - containerSecurityContext: - allowPrivilegeEscalation: false - runAsUser: "1000" + cloneCodebase: false execution: steps: - step: @@ -36,7 +21,7 @@ pipeline: connectorRef: dockerrajatha image: alpine:latest shell: Sh - command: |- + command: | touch harnessDockerfileui cat > harnessDockerfileui <<- EOM FROM alpine:latest AS dev-env @@ -50,30 +35,43 @@ pipeline: ENTRYPOINT ["ls"] EOM cat harnessDockerfileui - reports: - type: JUnit - spec: - paths: - - "*.xml" - outputVariables: - - name: LATEST_BRANCH - step: type: BuildAndPushDockerRegistry name: build and push identifier: build_and_push spec: connectorRef: dockerrajatha - repo: rajatharanganath/ciquickstart + repo: <+input> tags: - - <+pipeline.sequenceId> + - latest + dockerfile: harnessDockerfileui - step: - name: step2 - identifier: step2 - template: - templateRef: new_step_template_name - versionLabel: "1.0" - templateInputs: - type: BuildAndPushACR - spec: - connectorRef: <+input> - repository: <+input> + type: Run + name: Run_2 + identifier: Run_2 + spec: + shell: Sh + command: ls -ltr * + - step: + type: Security + name: Security_1 + identifier: Security_1 + spec: + privileged: true + settings: + policy_type: orchestratedScan + scan_type: repository + product_name: aqua-trivy + product_config_name: aqua-trivy + imagePullPolicy: Never + platform: + os: Linux + arch: Amd64 + runtime: + type: Cloud + spec: {} + variables: + - name: PLUGIN_DRY_RUN + type: String + description: "" + value: "true" diff --git a/exp/.harness/GitCloneIssue.yaml b/exp/.harness/GitCloneIssue.yaml index 313f5c27..56f67f69 100644 --- a/exp/.harness/GitCloneIssue.yaml +++ b/exp/.harness/GitCloneIssue.yaml @@ -14,7 +14,7 @@ pipeline: type: KubernetesDirect spec: connectorRef: rajathak8 - namespace: rajatha-delegate-april + namespace: " " automountServiceAccountToken: true nodeSelector: {} os: Linux @@ -28,7 +28,17 @@ pipeline: connectorRef: dockerrajatha image: alpine shell: Sh - command: echo <+codebase.tag> + command: |- + echo <+codebase.tag> + echo <+matrix.env> + envVariables: + abc: <+input> + failureStrategies: [] + strategy: + matrix: + env: + - abc + - efg - stage: name: stg2 identifier: stg2 @@ -54,5 +64,6 @@ pipeline: properties: ci: codebase: - connectorRef: tempToken + connectorRef: AccountLevelRajatha + repoName: rajatharanganath/testgo.git build: <+input> diff --git a/exp/.harness/ResourceUtilization.yaml b/exp/.harness/ResourceUtilization.yaml index 2c91bb86..0e7f97ef 100644 --- a/exp/.harness/ResourceUtilization.yaml +++ b/exp/.harness/ResourceUtilization.yaml @@ -27,29 +27,36 @@ pipeline: os: Linux execution: steps: - - parallel: - - step: - type: Run - name: lint - identifier: lint - spec: - connectorRef: <+input> - image: <+input> - shell: Sh - command: |- - echo test - sleep 100000 - - step: - type: Run - name: test - identifier: test - spec: - connectorRef: <+input> - image: <+input> - shell: Sh - command: |- - echo test - sleep 100000 + - step: + type: Run + name: test1 + identifier: test1 + spec: + connectorRef: dockerrajatha + image: alpine:latest + shell: Sh + command: |- + touch harnessDockerfileui + cat > harnessDockerfileui <<- EOM + FROM alpine:latest AS dev-env + ARG foo + RUN echo "$foo bar" + ENTRYPOINT ["pwd"] + + FROM alpine:latest AS release-env + ARG hello + RUN echo "$hello world" + ENTRYPOINT ["ls"] + EOM + cat harnessDockerfileui + - step: + type: GCSUpload + name: sdfdsaf + identifier: sdfdsaf + spec: + connectorRef: GCPConnector + bucket: abc + sourcePath: dsfdsfg failureStrategies: - onFailure: errors: diff --git a/exp/.harness/test2tractable.yaml b/exp/.harness/test2tractable.yaml index d419e2a9..5c3250a5 100644 --- a/exp/.harness/test2tractable.yaml +++ b/exp/.harness/test2tractable.yaml @@ -1,72 +1,87 @@ pipeline: - name: test2tractable - identifier: test2tractable - projectIdentifier: RajathaTest2 - orgIdentifier: default - tags: {} - properties: - ci: - codebase: - connectorRef: githubrajatha - build: <+input> - stages: - - stage: - name: build - identifier: build - type: CI - spec: - cloneCodebase: true - infrastructure: - type: KubernetesDirect - spec: - connectorRef: rajathak8 - namespace: rajatha-delegate-april - runAsUser: "" - automountServiceAccountToken: true - nodeSelector: {} - containerSecurityContext: - allowPrivilegeEscalation: false - runAsUser: "" - execution: - steps: - - step: - type: Run - name: run - identifier: run - spec: - connectorRef: dockerrajatha - image: golang:1.15 - shell: Sh - command: | - #!/bin/sh - echo <+codebase.targetBranch> - echo <+codebase.sourceBranch> - LATEST_BRANCH="master" - if [ <+codebase.targetBranch> == "master" ] - then - LATEST_BRANCH="heelotag, master" - else - LATEST_BRANCH="hellotag, non-master" - fi - export LATEST_BRANCH - outputVariables: - - name: LATEST_BRANCH - - stage: - name: stg2 - identifier: stg2 - type: CI - spec: - cloneCodebase: false - infrastructure: - useFromStage: build - execution: - steps: - - step: - type: Run - name: stg2 - identifier: stg2 - spec: - connectorRef: dockerrajatha - image: alpine - shell: Sh - command: echo <+pipeline.stages.build.spec.execution.steps.run.output.outputVariables.LATEST_BRANCH> + name: test2tractable + identifier: test2tractable + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: githubrajatha + build: <+input> + stages: + - stage: + name: build + identifier: build + type: CI + spec: + cloneCodebase: true + infrastructure: + type: KubernetesDirect + spec: + connectorRef: rajathak8 + namespace: rajatha-delegate-april + runAsUser: "" + automountServiceAccountToken: true + nodeSelector: {} + containerSecurityContext: + allowPrivilegeEscalation: false + runAsUser: "" + os: Linux + execution: + steps: + - step: + type: Run + name: run + identifier: run + spec: + connectorRef: dockerrajatha + image: golang:1.15 + shell: Sh + command: |- + #!/bin/sh + echo <+codebase.targetBranch> + echo <+codebase.sourceBranch> + LATEST_BRANCH="master" + if [ <+codebase.targetBranch> == "master" ] + then + LATEST_BRANCH="heelotag, master" + else + LATEST_BRANCH="hellotag, non-master" + fi + export LATEST_BRANCH + echo <+matrix.env> + echo <+matrix.service> + MATRIX_VALUE=<+matrix.env>+<+matrix.service> + export MATRIX_VALUE + <+pipeline.stages.build.variables.longvalue>=<+pipeline.stages.build.variables.longvalue> + $MATRIX_VALUE + outputVariables: + - name: LATEST_BRANCH + - name: MATRIX_VALUE + failureStrategies: [] + strategy: + matrix: + service: + - svc1 + - svc2 + - svc3 + env: + - env1 + - env2 + maxConcurrency: 2 + - step: + type: Run + name: test2 + identifier: test2 + spec: + connectorRef: dockerrajatha + image: alpinedfgdfg + shell: Sh + command: |- + echo <+execution.steps.run_0_0.output.outputVariables.MATRIX_VALUE> + echo <+pipeline.stages.build.variables.longvalue> + variables: + - name: longvalue + type: String + description: "" + value: "" diff --git a/exp/.harness/xzcxzv.yaml b/exp/.harness/xzcxzv.yaml index da8cc66e..14d14dc0 100644 --- a/exp/.harness/xzcxzv.yaml +++ b/exp/.harness/xzcxzv.yaml @@ -1,37 +1,60 @@ pipeline: - name: xzcxzv - identifier: xzcxzv - projectIdentifier: RajathaTest2 - orgIdentifier: default - tags: {} - properties: - ci: - codebase: - connectorRef: githubrajatha - build: <+input> - stages: - - stage: - name: xcvvcx - identifier: xcvvcx - type: CI + name: xzcxzv + identifier: xzcxzv + projectIdentifier: RajathaTest2 + orgIdentifier: default + tags: {} + properties: + ci: + codebase: + connectorRef: githubrajatha + build: <+input> + stages: + - stage: + name: xcvvcx + identifier: xcvvcx + type: CI + spec: + cloneCodebase: true + execution: + steps: + - step: + type: Run + name: xzvzx + identifier: xzvzx + spec: + connectorRef: account.gcpaccount + image: harness/drone-git:1.0.6-rootless-linux-amd64 + shell: Sh + command: ls -ltr * + timeout: 1m + infrastructure: + type: VM + spec: + type: Pool spec: - cloneCodebase: true - infrastructure: - type: KubernetesDirect - spec: - connectorRef: rajathak8 - namespace: xcvcxv - automountServiceAccountToken: true - nodeSelector: {} - harnessImageConnectorRef: dockerrajatha - execution: - steps: - - step: - type: Run - name: xzvzx - identifier: xzvzx - spec: - connectorRef: <+input> - image: <+input> - shell: Sh - command: cxvcxv + poolName: arm-pool + os: Linux + description: "" + variables: + - name: Standard_32 + type: String + description: "" + required: false + value: "true" + allowStageExecutions: true + timeout: 1d + notificationRules: + - name: abc + identifier: abc + pipelineEvents: + - type: StageFailed + forStages: + - xcvvcx + notificationMethod: + type: Email + spec: + userGroups: [] + recipients: + - rajatha.ranganath@harness.io + enabled: true diff --git a/logs (30).zip b/logs (30).zip new file mode 100644 index 00000000..6d82035b Binary files /dev/null and b/logs (30).zip differ diff --git a/test.txt b/test.txt index 595ea251..9e32b22b 100644 --- a/test.txt +++ b/test.txt @@ -1,3 +1,14 @@ A s asdasd +rajatha +ahdlsahflshcfl +adlASBFKSFKJFGJFJjgudfydysafdasdfsdfdsgadfhfsgghdgadg +sfsdfadfasdfzsdasFSZF +ASDasFSDAFSDF +SJFLSDHFLSFL +asDACCZC +asfsdkfp;kfdsffhsfhsczscfxsdfasdfgdszvasdsadfcxzvcxvxzvdfghfhgfh +sadasdfSDasdfsafdasfgdfga +zcfxcvxcvsdfdsaf +sfsdafdsfdsafdsgdfcgdfsgasfdsafdsf