Skip to content

Commit 23cc08e

Browse files
authored
feat: add gitlab support (#79)
1 parent 53f2fa7 commit 23cc08e

File tree

3 files changed

+622
-10
lines changed

3 files changed

+622
-10
lines changed

ibm_catalog.json

Lines changed: 226 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,119 @@
340340
"type": "string",
341341
"default_value": "",
342342
"description": "The name of the Git repository owner/group. This setting applies to all all the compliance repositories and sample app."
343-
}
343+
},
344+
{
345+
"key": "repo_git_provider",
346+
"type": "string",
347+
"default_value": "",
348+
"description": "By default this gets set as 'hostedgit', else set to 'githubconsolidated' for GitHub repositories or `gitlab` for GitLab. Applies to all the default DevSecOps repositories, except the `Compliance Pipelines` repository that get created at the time of running the DA.",
349+
"required": false
350+
},
351+
{
352+
"key": "repo_title",
353+
"type": "string",
354+
"default_value": "",
355+
"description": "(Optional) The title of the server. e.g. My Git Enterprise Server.",
356+
"required": false
357+
},
358+
{
359+
"key": "repo_root_url",
360+
"type": "string",
361+
"default_value": "",
362+
"description": "(Optional) The Root URL of the server. e.g. https://git.example.com.",
363+
"required": false
364+
},
365+
{
366+
"key": "repo_blind_connection",
367+
"type": "boolean",
368+
"default_value": false,
369+
"description": "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server.",
370+
"required": false
371+
},
372+
{
373+
"key": "repo_git_id",
374+
"type": "string",
375+
"default_value": "",
376+
"description": "Set this value to `github` for github.com, `gitlabcustom` for GitLab or to the ID of a custom GitHub Enterprise server.",
377+
"required": false
378+
},
379+
{
380+
"key": "evidence_repo_existing_url",
381+
"type": "string",
382+
"default_value": "",
383+
"description": "Set to use an existing evidence repository.",
384+
"required": false
385+
},
386+
{
387+
"key": "issues_repo_existing_url",
388+
"type": "string",
389+
"default_value": "",
390+
"description": "Set to use an existing issues repository.",
391+
"required": false
392+
},
393+
{
394+
"key": "inventory_repo_existing_url",
395+
"type": "string",
396+
"default_value": "",
397+
"description": "Set to use an existing inventory repository.",
398+
"required": false
399+
},
400+
{
401+
"key": "cd_deployment_repo_existing_url",
402+
"type": "string",
403+
"default_value": "",
404+
"description": "Override to bring your own existing deployment repository URL, which is used directly instead of cloning the default deployment sample.",
405+
"required": false
406+
},
407+
{
408+
"key": "change_management_existing_url",
409+
"type": "string",
410+
"default_value": "",
411+
"description": "Override to bring your own existing change management repository URL, which is used directly instead of cloning the default change management repository.",
412+
"required": false
413+
},
414+
{
415+
"key": "create_triggers",
416+
"type": "boolean",
417+
"default_value": true,
418+
"description": "Set to `true` to create the triggers used by the DevSecOps pipelines.",
419+
"required": false
420+
},
421+
{
422+
"key": "compliance_pipeline_repo_use_group_settings",
423+
"type": "boolean",
424+
"default_value": true,
425+
"description": "Set to `true` to apply group level repository settings to the compliance pipeline repository. See `repo_git_provider` as an example.",
426+
"required": false
427+
},
428+
{
429+
"key": "compliance_pipeline_repo_git_provider",
430+
"type": "string",
431+
"default_value": "",
432+
"description": "By default this gets set as 'hostedgit', else set to 'githubconsolidated' for GitHub repositories or `gitlab` for GitLab.",
433+
"required": false
434+
},
435+
{
436+
"key": "compliance_pipeline_repo_git_id",
437+
"type": "string",
438+
"default_value": "",
439+
"description": "Set this value to `github` for github.com, `gitlabcustom` for GitLab or to the ID of a custom GitHub Enterprise server.",
440+
"required": false
441+
},
442+
{
443+
"key": "compliance_pipeline_existing_repo_url",
444+
"type": "string",
445+
"default_value": "",
446+
"description": "Override to bring your own existing compliance pipelines repository URL, which is used directly instead of cloning the default change compliance pipelines repository.",
447+
"required": false
448+
},
449+
{
450+
"key": "add_pipeline_definitions",
451+
"type": "boolean",
452+
"default_value": true,
453+
"description": "Set to `true` to add the compliance pipelines definitions to the DevSecOps pipelines.",
454+
"required": false
455+
}
344456
],
345457
"outputs": [
346458
{
@@ -696,7 +808,119 @@
696808
"type": "string",
697809
"default_value": "",
698810
"description": "The name of the Git repository owner/group. This setting applies to all all the compliance repositories and sample app."
699-
}
811+
},
812+
{
813+
"key": "repo_git_provider",
814+
"type": "string",
815+
"default_value": "",
816+
"description": "By default this gets set as 'hostedgit', else set to 'githubconsolidated' for GitHub repositories or `gitlab` for GitLab. Applies to all the default DevSecOps repositories, except the `Compliance Pipelines` repository that get created at the time of running the DA.",
817+
"required": false
818+
},
819+
{
820+
"key": "repo_title",
821+
"type": "string",
822+
"default_value": "",
823+
"description": "(Optional) The title of the server. e.g. My Git Enterprise Server.",
824+
"required": false
825+
},
826+
{
827+
"key": "repo_root_url",
828+
"type": "string",
829+
"default_value": "",
830+
"description": "(Optional) The Root URL of the server. e.g. https://git.example.com.",
831+
"required": false
832+
},
833+
{
834+
"key": "repo_blind_connection",
835+
"type": "boolean",
836+
"default_value": false,
837+
"description": "Setting this value to `true` means the server is not addressable on the public internet. IBM Cloud will not be able to validate the connection details you provide. Certain functionality that requires API access to the git server will be disabled. Delivery pipeline will only work using a private worker that has network access to the git server.",
838+
"required": false
839+
},
840+
{
841+
"key": "repo_git_id",
842+
"type": "string",
843+
"default_value": "",
844+
"description": "Set this value to `github` for github.com, `gitlabcustom` for GitLab or to the ID of a custom GitHub Enterprise server.",
845+
"required": false
846+
},
847+
{
848+
"key": "evidence_repo_existing_url",
849+
"type": "string",
850+
"default_value": "",
851+
"description": "Set to use an existing evidence repository.",
852+
"required": false
853+
},
854+
{
855+
"key": "issues_repo_existing_url",
856+
"type": "string",
857+
"default_value": "",
858+
"description": "Set to use an existing issues repository.",
859+
"required": false
860+
},
861+
{
862+
"key": "inventory_repo_existing_url",
863+
"type": "string",
864+
"default_value": "",
865+
"description": "Set to use an existing inventory repository.",
866+
"required": false
867+
},
868+
{
869+
"key": "cd_deployment_repo_existing_url",
870+
"type": "string",
871+
"default_value": "",
872+
"description": "Override to bring your own existing deployment repository URL, which is used directly instead of cloning the default deployment sample.",
873+
"required": false
874+
},
875+
{
876+
"key": "change_management_existing_url",
877+
"type": "string",
878+
"default_value": "",
879+
"description": "Override to bring your own existing change management repository URL, which is used directly instead of cloning the default change management repository.",
880+
"required": false
881+
},
882+
{
883+
"key": "create_triggers",
884+
"type": "boolean",
885+
"default_value": true,
886+
"description": "Set to `true` to create the triggers used by the DevSecOps pipelines.",
887+
"required": false
888+
},
889+
{
890+
"key": "compliance_pipeline_repo_use_group_settings",
891+
"type": "boolean",
892+
"default_value": true,
893+
"description": "Set to `true` to apply group level repository settings to the compliance pipeline repository. See `repo_git_provider` as an example.",
894+
"required": false
895+
},
896+
{
897+
"key": "compliance_pipeline_repo_git_provider",
898+
"type": "string",
899+
"default_value": "",
900+
"description": "By default this gets set as 'hostedgit', else set to 'githubconsolidated' for GitHub repositories or `gitlab` for GitLab.",
901+
"required": false
902+
},
903+
{
904+
"key": "compliance_pipeline_repo_git_id",
905+
"type": "string",
906+
"default_value": "",
907+
"description": "Set this value to `github` for github.com, `gitlabcustom` for GitLab or to the ID of a custom GitHub Enterprise server.",
908+
"required": false
909+
},
910+
{
911+
"key": "compliance_pipeline_existing_repo_url",
912+
"type": "string",
913+
"default_value": "",
914+
"description": "Override to bring your own existing compliance pipelines repository URL, which is used directly instead of cloning the default change compliance pipelines repository.",
915+
"required": false
916+
},
917+
{
918+
"key": "add_pipeline_definitions",
919+
"type": "boolean",
920+
"default_value": true,
921+
"description": "Set to `true` to add the compliance pipelines definitions to the DevSecOps pipelines.",
922+
"required": false
923+
}
700924
],
701925
"outputs": [
702926
{

0 commit comments

Comments
 (0)