Public/Initialize-Jenkins.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function Initialize-Jenkins {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory=$true)]
        [String] $JenkinsUrl,
        [Parameter(Mandatory=$true)]
        [String] $ApiUsername,
        [Parameter(Mandatory=$true)]
        [SecureString] $ApiPassword
    )

    $script:jenkinsUrl = $JenkinsUrl
    $script:apiUsername = $ApiUsername
    $script:apiPassword = $ApiPassword
}