test powershell master version update

don't upgrade for this build
This commit is contained in:
RaidMax 2020-01-12 16:46:39 -06:00
parent e64e02342e
commit 639db5d7eb

View File

@ -145,23 +145,24 @@ steps:
changeLogCompareToRelease: 'lastNonDraftRelease' changeLogCompareToRelease: 'lastNonDraftRelease'
changeLogType: 'commitBased' changeLogType: 'commitBased'
- task: PowerShell@2
- task: InvokeRESTAPI@1
inputs: inputs:
connectionType: 'connectedServiceName' targetType: 'inline'
serviceConnection: 'IW4MAdmin-Master' script: |
method: 'POST' $payload = @{
headers: | 'current-version-prerelease' = '$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).0'
{ 'jwt-secret' = '$(JWTSecret)'
"Content-Type":"application/json", } | ConvertTo-Json
$params = @{
Uri = 'http://api.raidmax.org:5000/version'
Method = 'POST'
Body = $payload
ContentType = 'application/json'
} }
body: |
{ Invoke-RestMethod @params
"current-version-prerelease": "$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).0",
"jwt-secret" : $(JWTSecret)"
}
urlSuffix: '/version'
waitForCompletion: 'true'
- task: PublishPipelineArtifact@1 - task: PublishPipelineArtifact@1
inputs: inputs: