func_Jobs.ps1
# --------------------------------------------------------------------- # Jobs API # https://docs.gitlab.com/ee/api/jobs.html # get a list of project jobs function Get-GitlabJobs([Parameter(Mandatory=$true)] [string] $project) { [string] $GAPI_JOBS = "$CI_API_V4_URL/projects/$project/jobs?per_page=100" return @(Invoke-WebRequestContentToJson -headers $GLPT -uri $GAPI_JOBS) } |