Closed CodyRWhite closed 1 year ago
Sorry had some issues rebasing. This should be good now.
To do a quick test you can run these commands inside of OSDCloud WinPE once it has booted.
These commands will prepare the environment, download the modified versions of the file, and force reload the module.
Set-DisRes 1600
Set-Location -Path "X:\Program Files\WindowsPowerShell\Modules\OSD\22.6.17.1\Public\Functions\split"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/CodyRWhite/OSD/GitLab-API/Public/Functions/split/Start-OSDPad.ps1" -OutFile "Start-OSDPad.ps1"
Set-Location -Path "X:\Program Files\WindowsPowerShell\Modules\OSD\22.6.17.1\Projects"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/CodyRWhite/OSD/GitLab-API/Projects/OSDPad.ps1" -OutFile "OSDPad.ps1"
Import-Modules OSD -Force
once the module has been reloaded you can test with the following commands
GitHub no OAuth
Start-OSDPad OSDeploy OSDHelp OSDCloudDeploy
GitLab with OAuth
Start-OSDPad 12 Scripts -RepoDomain gitlab.domain.com -OAuth "xxxxxxxxxxxxxxxx"
I can setup a test GitLab environment if required for PoC/Testing.
Adding Gitlab API Support
This change adds support for accessing GitLab repositories with or without OAuth. This update does not alter the existing switches so that existing configurations will not need to be modified.
Existing switches that have verified and worked
Screen Capture![github example](https://user-images.githubusercontent.com/56890437/174912471-47fc5957-a949-46f9-b761-5b7d2a32fdc0.png)
New switches to support GitLab
Screen Capture![gitlab example](https://user-images.githubusercontent.com/56890437/174912518-8a12599d-2805-4c4a-865f-4879e6e99caa.png)