test powershell master version update
don't upgrade for this build
This commit is contained in:
parent
e64e02342e
commit
639db5d7eb
@ -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
|
||||||
}
|
|
||||||
body: |
|
|
||||||
{
|
$params = @{
|
||||||
"current-version-prerelease": "$(VersionInformation.Major).$(VersionInformation.Minor).$(VersionInformation.Build).0",
|
Uri = 'http://api.raidmax.org:5000/version'
|
||||||
"jwt-secret" : $(JWTSecret)"
|
Method = 'POST'
|
||||||
}
|
Body = $payload
|
||||||
urlSuffix: '/version'
|
ContentType = 'application/json'
|
||||||
waitForCompletion: 'true'
|
}
|
||||||
|
|
||||||
|
Invoke-RestMethod @params
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
inputs:
|
inputs:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user