This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node('windows') | |
{ | |
def buildnumber ="${env:BUILD_NUMBER}" | |
def nugetApiKey = 'API-7HH5N7EFAOFFMRG6KZSTCBWJ2A0>' | |
def nugetServer = 'http://ie1opsoctopus01.northeurope.cloudapp.azure.com' | |
def nugetPackages = 'http://ie1opsoctopus01.northeurope.cloudapp.azure.com/nuget/packages' | |
def nuget = "\"${WORKSPACE}\\.nuget\\nuget.exe\"" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$testwinrm = Test-WSMan localhost -ErrorAction Ignore` ; if ($testwinrm -eq $null) {winrm create winrm/config/Listener?Address=*+Transport=HTTP} | |
Set-Item -Path WSMan:\localhost\Shell\MaxMemoryPerShellMB -Value "1024" -Force | |
Set-Item -Path wsman:\localhost\Client\TrustedHosts -Value * -Force | |
Set-Item -Path wsman:\localhost\Client\Auth\\Basic -Value $true -Force | |
set-item -Path wsman:\localhost\Service\Auth\\Basic -Value $true -Force | |
Set-Item -Path wsman:\localhost\Service\AllowUnencrypted -Value $true -Force | |
# Setup Firewall rules |