Public/Remove-Jenkinsjob.ps1

1
2
3
4
5
6
7
8
9
10
11
12
function Remove-JenkinsJob {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$true)]
        [String] $Job
    )

    $response = Invoke-Jenkins -Resource "job/$Job/doDelete" -Method "POST"
    Write-Debug "Response for Remove-JenkinsJob: StatusCode : $($response.StatusCode), Headers: $($response.Headers), Content: $($response.Content)"

}