From 639db5d7ebd55eee7533ef04d003db32ea655107 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 12 Jan 2020 16:46:39 -0600 Subject: [PATCH] test powershell master version update don't upgrade for this build --- azure-pipelines.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 26b4125d4..809f160b5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -145,23 +145,24 @@ steps: changeLogCompareToRelease: 'lastNonDraftRelease' changeLogType: 'commitBased' - -- task: InvokeRESTAPI@1 +- task: PowerShell@2 inputs: - connectionType: 'connectedServiceName' - serviceConnection: 'IW4MAdmin-Master' - method: 'POST' - headers: | - { - "Content-Type":"application/json", - } - body: | - { - "current-version-prerelease": "$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).0", - "jwt-secret" : $(JWTSecret)" - } - urlSuffix: '/version' - waitForCompletion: 'true' + targetType: 'inline' + script: | + $payload = @{ + 'current-version-prerelease' = '$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).0' + 'jwt-secret' = '$(JWTSecret)' + } | ConvertTo-Json + + + $params = @{ + Uri = 'http://api.raidmax.org:5000/version' + Method = 'POST' + Body = $payload + ContentType = 'application/json' + } + + Invoke-RestMethod @params - task: PublishPipelineArtifact@1 inputs: