diff --git a/.harness/GitX_Settings_Test.yaml b/.harness/GitX_Settings_Test.yaml new file mode 100644 index 0000000..8e5a6a8 --- /dev/null +++ b/.harness/GitX_Settings_Test.yaml @@ -0,0 +1,30 @@ +pipeline: + name: GitX Settings Test + identifier: GitX_Settings_Test + projectIdentifier: KD_Git_Ex + orgIdentifier: KD + tags: {} + stages: + - stage: + name: Custom + identifier: Custom + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: ShellScript + name: echo + identifier: echo + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo "Hello OAuth" + environmentVariables: [] + outputVariables: [] + timeout: 10m + tags: {} diff --git a/.harness/ISrun.yaml b/.harness/ISrun.yaml new file mode 100644 index 0000000..47b7070 --- /dev/null +++ b/.harness/ISrun.yaml @@ -0,0 +1,97 @@ +inputSet: + name: ISrun + tags: {} + identifier: ISrun + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + stages: + - parallel: + - stage: + identifier: Custom + type: Custom + delegateSelectors: <+input> + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput() + - stage: + identifier: deploystage + type: Deployment + spec: + execution: + steps: + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + environmentVariables: + - name: test + type: Number + value: "10" + includeInfraSelectors: false + services: + values: + - serviceRef: SudarService + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + variables: + - name: ServiceVar + type: String + value: sdsd + environmentGroup: + environments: + - environmentRef: test_envi + deployToAll: true + infrastructureDefinitions: + - identifier: vl_infra_dummy + - stage: + identifier: template + template: + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: sdsd + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: echo "ehlle" + - stage: + identifier: deploy2 + type: Deployment + spec: + service: + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + variables: + - name: ServiceVar + type: String + value: sdessd + variables: + - name: input_set_name_with_long_name_and_longer_name + type: String + value: sdsd + - name: input_set_name3 + type: String + value: aa diff --git a/.harness/Remote_1.yaml b/.harness/Remote_1.yaml new file mode 100644 index 0000000..f5a3dee --- /dev/null +++ b/.harness/Remote_1.yaml @@ -0,0 +1,30 @@ +pipeline: + name: Remote 1 + identifier: Remote_1 + projectIdentifier: KD_Playground + orgIdentifier: default + tags: {} + stages: + - stage: + name: Custom + identifier: Custom + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: ShellScript + name: Shell Script_1 + identifier: ShellScript_1 + spec: + shell: Bash + onDelegate: true + source: + type: Inline + spec: + script: echo "Welcome to Git Experience" + environmentVariables: [] + outputVariables: [] + timeout: 10m + tags: {} diff --git a/.harness/Remote_pipeline.yaml b/.harness/Remote_pipeline.yaml new file mode 100644 index 0000000..3589513 --- /dev/null +++ b/.harness/Remote_pipeline.yaml @@ -0,0 +1,80 @@ +pipeline: + name: Remote pipeline + identifier: Remote_pipeline + projectIdentifier: Rohan + orgIdentifier: default + tags: + Sample: "" + stages: + - stage: + name: Template CD + identifier: Template_CD + description: "" + type: Deployment + spec: + deploymentType: CustomDeployment + customDeploymentRef: + templateRef: AWS_SAM + versionLabel: 0.0.1 + service: + serviceRef: SAM_Function + execution: + steps: + - step: + name: Fetch Instances + identifier: fetchInstances + type: FetchInstanceScript + timeout: 10m + spec: {} + rollbackSteps: [] + environment: + environmentRef: L2 + deployToAll: false + infrastructureDefinitions: <+input> + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback + - stage: + name: CD2 + identifier: CD2 + description: "" + type: Deployment + spec: + deploymentType: Kubernetes + service: + serviceRef: <+input> + serviceInputs: <+input> + environment: + useFromStage: + stage: Template_CD + execution: + steps: + - step: + name: Rollout Deployment + identifier: rolloutDeployment + type: K8sRollingDeploy + timeout: 10m + spec: + skipDryRun: false + pruningEnabled: false + rollbackSteps: + - step: + name: Rollback Rollout Deployment + identifier: rollbackRolloutDeployment + type: K8sRollingRollback + timeout: 10m + spec: + pruningEnabled: false + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback + description: | + SampleTesting diff --git a/.harness/asaas.yaml b/.harness/asaas.yaml new file mode 100644 index 0000000..43ff796 --- /dev/null +++ b/.harness/asaas.yaml @@ -0,0 +1,57 @@ +inputSet: + name: asaas + identifier: asaas + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + tags: + type: "" + stages: + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput() + - stage: + identifier: custom23 + type: Custom + spec: + execution: + steps: + - stepGroup: + identifier: sg1 + steps: + - step: + identifier: ShellScript_sgn + type: ShellScript + spec: + outputVariables: + - name: hello + type: String + value: <+input> + - stage: + identifier: deploystage + type: Deployment + spec: + execution: + steps: + - step: + identifier: rolloutDeployment + type: K8sRollingDeploy + timeout: <+input> + variables: + - name: input_set_name + type: String + value: <+input> + - name: input_set_name2 + type: String + value: <+input> + - name: input_set_name3 + type: String + value: <+input> + - name: required_variable + type: String + value: <+input> diff --git a/.harness/blankis.yaml b/.harness/blankis.yaml new file mode 100644 index 0000000..69d9a24 --- /dev/null +++ b/.harness/blankis.yaml @@ -0,0 +1,74 @@ +inputSet: + name: blankis + tags: {} + identifier: blankis + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + stages: + - stage: + identifier: deploystage + type: Deployment + spec: + service: + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + variables: + - name: ServiceVar + type: String + value: <+input> + - parallel: + - stage: + identifier: Custom + type: Custom + spec: + execution: + steps: + - step: + identifier: TerraformPlan_1 + type: TerraformPlan + spec: + configuration: + secretManagerRef: <+input> + delegateSelectors: [] + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput().allowedValues(<+pipeline.name>,<+pipeline.id>) + - stage: + identifier: template + template: + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: <+input> + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: <+input> + variables: + - name: input_set_name_with_long_name_and_longer_name + type: String + value: <+input> + - name: input_set_name3 + type: String + value: <+input> diff --git a/.harness/empty_input_set.yaml b/.harness/empty_input_set.yaml new file mode 100644 index 0000000..0c80c5a --- /dev/null +++ b/.harness/empty_input_set.yaml @@ -0,0 +1,65 @@ +inputSet: + name: empty input set + tags: {} + identifier: empty_input_set + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + stages: + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput() + - stage: + identifier: deploystage + type: Deployment + spec: + execution: + steps: + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + environmentVariables: + - name: test + type: Number + value: <+input> + includeInfraSelectors: <+pipeline.name> + - stage: + identifier: template + template: + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: <+input> + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: <+input> + variables: + - name: input_set_name + type: String + value: "\"\"" + - name: input_set_name2 + type: String + value: <+pipeline.name> + - name: input_set_name3 + type: String + value: <+input> diff --git a/.harness/isempty.yaml b/.harness/isempty.yaml new file mode 100644 index 0000000..ecfcccb --- /dev/null +++ b/.harness/isempty.yaml @@ -0,0 +1,73 @@ +inputSet: + name: isempty + identifier: isempty + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + stages: + - stage: + identifier: deploystage + type: Deployment + spec: + service: + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + variables: + - name: ServiceVar + type: String + value: <+input> + - parallel: + - stage: + identifier: Custom + type: Custom + spec: + execution: + steps: + - step: + identifier: TerraformPlan_1 + type: TerraformPlan + spec: + configuration: + secretManagerRef: <+input> + delegateSelectors: [] + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput().allowedValues(<+pipeline.name>,<+pipeline.id>) + - stage: + identifier: template + template: + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: <+input> + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: <+input> + variables: + - name: input_set_name_with_long_name_and_longer_name + type: String + value: <+input> + - name: input_set_name3 + type: String + value: <+input> diff --git a/.harness/overlay.yaml b/.harness/overlay.yaml new file mode 100644 index 0000000..b158ef4 --- /dev/null +++ b/.harness/overlay.yaml @@ -0,0 +1,10 @@ +overlayInputSet: + name: overlay + tags: {} + identifier: overlay + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipelineIdentifier: sudartest + inputSetReferences: + - empty_input_set + - input_set_3 diff --git a/.harness/sdfsdsdasa.yaml b/.harness/sdfsdsdasa.yaml new file mode 100644 index 0000000..e5a1ba1 --- /dev/null +++ b/.harness/sdfsdsdasa.yaml @@ -0,0 +1,57 @@ +inputSet: + name: sdfsdsdasa + identifier: sdfsdsdasa + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + tags: + type: "" + stages: + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput() + - stage: + identifier: custom23 + type: Custom + spec: + execution: + steps: + - stepGroup: + identifier: sg1 + steps: + - step: + identifier: ShellScript_sgn + type: ShellScript + spec: + outputVariables: + - name: hello + type: String + value: <+input> + - stage: + identifier: deploystage + type: Deployment + spec: + execution: + steps: + - step: + identifier: rolloutDeployment + type: K8sRollingDeploy + timeout: <+input> + variables: + - name: input_set_name + type: String + value: <+input> + - name: input_set_name2 + type: String + value: <+input> + - name: input_set_name3 + type: String + value: <+input> + - name: required_variable + type: String + value: <+input> diff --git a/.harness/test_gitMetadata.yaml b/.harness/test_gitMetadata.yaml new file mode 100644 index 0000000..a644f20 --- /dev/null +++ b/.harness/test_gitMetadata.yaml @@ -0,0 +1,30 @@ +pipeline: + name: test_gitMetadata + identifier: test_gitMetadata + projectIdentifier: naidusanity + orgIdentifier: default + tags: {} + stages: + - stage: + name: s + identifier: s + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: ShellScript + name: ShellScript_1 + identifier: ShellScript_1 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: echo "hi" + environmentVariables: [] + outputVariables: [] + timeout: 10m + tags: {} diff --git a/.harness/test_r.yaml b/.harness/test_r.yaml new file mode 100644 index 0000000..eb86c0a --- /dev/null +++ b/.harness/test_r.yaml @@ -0,0 +1,30 @@ +pipeline: + name: test_r + identifier: test_r + projectIdentifier: naidusanity + orgIdentifier: default + tags: {} + stages: + - stage: + name: s + identifier: s + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: ShellScript + name: ShellScript_1 + identifier: ShellScript_1 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: exit 0 + environmentVariables: [] + outputVariables: [] + timeout: 10m + tags: {} diff --git a/IS.yaml b/IS.yaml new file mode 100644 index 0000000..4f01f3e --- /dev/null +++ b/IS.yaml @@ -0,0 +1,64 @@ +inputSet: + name: IS1 + identifier: IS1 + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + stages: + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput() + - stage: + identifier: deploystage + type: Deployment + spec: + execution: + steps: + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + environmentVariables: + - name: test + type: Number + value: <+input> + includeInfraSelectors: <+pipeline.name> + - stage: + identifier: template + template: + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: <+input> + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: <+input> + variables: + - name: input_set_name + type: String + value: <+input> + - name: input_set_name2 + type: String + value: <+input> + - name: input_set_name3 + type: String + value: <+input> diff --git a/input_set_3.yaml b/input_set_3.yaml new file mode 100644 index 0000000..7eb4b4a --- /dev/null +++ b/input_set_3.yaml @@ -0,0 +1,65 @@ +inputSet: + name: input set 3 + tags: {} + identifier: input_set_3 + orgIdentifier: default + projectIdentifier: TF_Test_Sudar + pipeline: + identifier: sudartest + stages: + - stage: + identifier: child + type: Pipeline + variables: + - name: test234 + type: String + value: <+input>.executionInput() + - stage: + identifier: deploystage + type: Deployment + spec: + execution: + steps: + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + environmentVariables: + - name: test + type: Number + value: <+input> + includeInfraSelectors: false + - stage: + identifier: template + template: + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: <+input> + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: <+input> + variables: + - name: input_set_name + type: String + value: <+input> + - name: input_set_name2 + type: String + value: test + - name: input_set_name3 + type: String + value: val3 diff --git a/sudartest.yaml b/sudartest.yaml index cec8f01..af4d8fd 100644 --- a/sudartest.yaml +++ b/sudartest.yaml @@ -1,13 +1,18 @@ pipeline: - name: sudartest + name: Sudarshan Test identifier: sudartest projectIdentifier: TF_Test_Sudar orgIdentifier: default - tags: {} + tags: + name: mohit + type: prod + test: Ershad + keying: shantelle + test2: <+pipeline.name> stages: - stage: name: approval - identifier: approval + identifier: approvalqweqweqwe description: "" type: Approval spec: @@ -28,28 +33,566 @@ pipeline: disallowPipelineExecutor: false userGroups: - account.ProductManagement - approverInputs: [] + approverInputs: + - name: testinput + defaultValue: "" + tags: {} + when: + pipelineStatus: Success + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: Abort + - stage: + name: test + identifier: test + description: "" + type: Custom + spec: + execution: + steps: + - step: + name: sdsdsdfsdf + identifier: sdsd + template: + templateRef: Approvaltemplate + versionLabel: v1 - step: type: ShellScript - name: sudarstep - identifier: sudarstep + name: ShellScript_1 + identifier: ShellScript_1 spec: shell: Bash - onDelegate: true + executionTarget: {} source: type: Inline spec: - script: echo "hello" - environmentVariables: - - name: inputvar + script: echo q + environmentVariables: [] + outputVariables: [] + timeout: 10m + - step: + type: ShellScript + name: ShellScript_2 + identifier: ShellScript_2 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: |- + export how="howaar" + echo <+pipeline.branch1> + environmentVariables: [] + outputVariables: + - name: hello type: String - value: test + value: how + timeout: 10m + - stepGroup: + name: step1 + identifier: step1 + steps: + - step: + type: ShellScript + name: Run_1 + identifier: Run_1 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: |- + echo <+execution.steps.ShellScript_2.output.outputVariables.hello> + export var1=varvalue + environmentVariables: [] + outputVariables: + - name: var1 + type: String + value: var1 + timeout: 10m + - stepGroup: + name: group2 + identifier: group2 + steps: + - step: + type: ShellScript + name: ShellScript_2_1 + identifier: ShellScript_2_1 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: |+ + echo <+stepGroup.getParentStepGroup.steps.Run_1.output.outputVariables.var1> + + environmentVariables: [] + outputVariables: [] + timeout: 10m + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: MarkAsFailure + - stepGroup: + name: step2 + identifier: step2 + steps: + - stepGroup: + name: step3 + identifier: step3 + steps: + - step: + type: Email + name: Email_1 + identifier: Email_1 + spec: + to: sdars@gmail.com + cc: "" + subject: sdcsd + body: haha + timeout: 10m + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: Ignore + - stage: + name: deploystage + identifier: deploystage + description: "" + type: Deployment + spec: + deploymentType: Kubernetes + service: + serviceRef: SudarService + serviceInputs: + serviceDefinition: + type: Kubernetes + spec: + variables: + - name: ServiceVar + type: String + value: <+input> + environment: + environmentRef: env1 + deployToAll: false + infrastructureDefinitions: + - identifier: infra1 + execution: + steps: + - step: + type: GitOpsSync + name: GitOpsSync_1 + identifier: GitOpsSync_1 + spec: + prune: false + dryRun: false + applyOnly: false + forceApply: false + applicationsList: + - applicationName: engineering-prod-guestbook + agentId: sudarshanagent1 + - applicationName: engineering-dev-guestbook + agentId: sudarshanagent1 + retryStrategy: {} + retry: false + syncOptions: + skipSchemaValidation: true + autoCreateNamespace: false + pruneResourcesAtLast: false + applyOutOfSyncOnly: false + replaceResources: false + prunePropagationPolicy: foreground + timeout: 10m + - step: + type: ShellScript + name: ShellScript_1 + identifier: ShellScript_1 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: echo 1 + environmentVariables: [] + outputVariables: [] + timeout: 10m + - step: + type: UpdateGitOpsApp + name: UpdateGitOpsApp_1 + identifier: UpdateGitOpsApp_1 + spec: + kustomize: <+input> + applicationName: <+input> + agentId: <+input> + targetRevision: <+input> + helm: <+input> + timeout: 10m + rollbackSteps: + - step: + type: ShellScript + name: ShellScript_1 + identifier: ShellScript_1 + spec: + shell: Bash + executionTarget: {} + source: + type: Inline + spec: + script: echo "hello" + environmentVariables: [] outputVariables: [] timeout: 10m + when: + stageStatus: Success + - step: + name: Rollback Rollout Deployment + identifier: rollbackRolloutDeployment + type: K8sRollingRollback + timeout: 10m + spec: + pruningEnabled: false + tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback + when: + pipelineStatus: Success + - stage: + name: test123 + identifier: test123 + description: "" + type: Deployment + spec: + deploymentType: Kubernetes + service: + serviceRef: <+input> + serviceInputs: <+input> + environment: + environmentRef: <+input> + deployToAll: false + environmentInputs: <+input> + serviceOverrideInputs: <+input> + infrastructureDefinitions: <+input> + execution: + steps: + - stepGroup: + name: Canary Deployment + identifier: canaryDeployment + steps: + - step: + name: Canary Deployment + identifier: canaryDeployment + type: K8sCanaryDeploy + timeout: 10m + spec: + instanceSelection: + spec: + percentage: 50 + type: Percentage + skipDryRun: false + trafficRouting: + spec: + routes: + - route: + type: http + name: route1 + destinations: + - destination: + host: stable + - destination: + host: canary + name: virtual-service-<+service.name> + provider: istio + - step: + type: K8sCanaryDeploy + name: K8sCanaryDeploy_1 + identifier: K8sCanaryDeploy_1 + spec: + skipDryRun: false + instanceSelection: + spec: + percentage: 50 + type: Percentage + timeout: 10m + - step: + name: Canary Delete + identifier: canaryDelete + type: K8sCanaryDelete + timeout: 10m + spec: {} + - stepGroup: + name: Primary Deployment + identifier: primaryDeployment + steps: + - step: + name: Rolling Deployment + identifier: rollingDeployment + type: K8sRollingDeploy + timeout: 10m + spec: + skipDryRun: false + rollbackSteps: + - step: + name: Canary Delete + identifier: rollbackCanaryDelete + type: K8sCanaryDelete + timeout: 10m + spec: {} + - step: + name: Rolling Rollback + identifier: rollingRollback + type: K8sRollingRollback + timeout: 10m + spec: {} tags: {} + failureStrategies: + - onFailure: + errors: + - AllErrors + action: + type: StageRollback + - parallel: + - stage: + name: Custom + identifier: Custom + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: ShellScript + name: ShellScript_1 + identifier: ShellScript_1 + spec: + shell: Bash + source: + type: Inline + spec: + script: echo "helllo" + environmentVariables: [] + outputVariables: [] + executionTarget: {} + timeout: 10m + - step: + type: HarnessApproval + name: HarnessApproval_1 + identifier: HarnessApproval_1 + spec: + approvalMessage: Please review the following information and approve the pipeline progression + includePipelineExecutionHistory: true + isAutoRejectEnabled: false + approvers: + userGroups: + - account.ProductManagement + minimumCount: 1 + disallowPipelineExecutor: false + approverInputs: [] + timeout: 1d + - step: + type: TerraformPlan + name: TerraformPlan_1 + identifier: TerraformPlan_1 + spec: + provisionerIdentifier: testid + configuration: + command: Apply + configFiles: + store: + spec: + connectorRef: gitlabconnector + repoName: " TestProj" + gitFetchType: Branch + branch: main + folderPath: test.tf + type: GitLab + secretManagerRef: <+input> + timeout: 10m + - step: + type: Email + name: Email_1 + identifier: Email_1 + spec: + to: sudarshan.purohit@gmail.com + cc: "" + subject: Test email from pipeline + body: |- + +
+ + + timeout: 10m + - step: + name: test23 + identifier: test23 + template: + templateRef: Approvaltemplate + versionLabel: v1 + tags: {} + delegateSelectors: <+input> + when: + pipelineStatus: Success + - stage: + name: Test2 + identifier: Test2 + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: HarnessApproval + name: HarnessApproval_1 + identifier: HarnessApproval_1 + spec: + approvalMessage: Please review the following information and approve the pipeline progression + includePipelineExecutionHistory: true + isAutoRejectEnabled: false + approvers: + userGroups: + - account.ProductManagement + minimumCount: 1 + disallowPipelineExecutor: false + approverInputs: [] + timeout: 1d + tags: {} + - stage: + name: Test3 + identifier: Test3 + description: "" + type: Custom + spec: + execution: + steps: + - step: + type: HarnessApproval + name: HarnessApproval_1 + identifier: HarnessApproval_1 + spec: + approvalMessage: Please review the following information and approve the pipeline progression + includePipelineExecutionHistory: true + isAutoRejectEnabled: false + approvers: + userGroups: + - account.ProductManagement + minimumCount: 1 + disallowPipelineExecutor: false + approverInputs: [] + timeout: 1d + tags: {} + - stage: + name: child + identifier: child + description: "" + type: Pipeline + spec: + org: default + pipeline: Approval_Pipeline + project: TF_Test_Sudar + outputs: [] + inputs: + identifier: Approval_Pipeline + stages: + - stage: + identifier: customs3 + type: Custom + spec: + execution: + steps: + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + environmentVariables: + - name: input4 + type: String + value: sdsd + timeout: 10s + tags: {} + variables: + - name: test234 + type: String + description: sdfs + required: false + value: <+input>.executionInput().allowedValues(<+pipeline.name>,<+pipeline.id>) + - stage: + name: buildstage + identifier: buildstage + description: "" + type: CI + spec: + cloneCodebase: false + infrastructure: + type: KubernetesDirect + spec: + connectorRef: account.Harness_Kubernetes_Cluster + namespace: test + automountServiceAccountToken: true + nodeSelector: {} + os: Linux + execution: + steps: + - step: + type: Run + name: Run_1 + identifier: Run_1 + spec: + connectorRef: testttaws + image: test + shell: Sh + command: echo "hello" - stage: - name: customstage - identifier: customstage + name: template + identifier: template template: templateRef: approvaltemplate versionLabel: v1 + templateInputs: + type: Custom + spec: + execution: + steps: + - step: + identifier: httpstep + type: Http + spec: + inputVariables: + - name: testinput + type: String + value: <+input> + - step: + identifier: ShellScript_1 + type: ShellScript + spec: + source: + type: Inline + spec: + script: <+input> + environmentVariables: + - name: bklabla + type: String + value: <+input> + allowStageExecutions: true