Answers for "azure release pipeline to google play store"

0

azure release pipeline to google play store

url = "$($env:SYSTEM_TEAMFOUNDATIONSERVERURI)$env:SYSTEM_TEAMPROJECTID/_apis/Release/defin>itions/$($env:RELEASE_DEFINITIONID)?api-version=5.0-preview.3"
Write-Host "URL: $url"

$StringValue = Invoke-RestMethod -Uri $url -Headers @{Authorization = "Bearer $env:SYSTEM_ACCESSTOKEN"}
Write-Host $StringValue

$jsonString =  "$($StringValue | ConvertTo-Json -Depth 100)"
Write-Host $jsonString

$json = $jsonString | ConvertFrom-Json

Write-Host $json
$alias = $json.variables.KeyAlias.value
$keyStore = $json.variables.StorePassword.value
$keyPassword = $json.variables.KeyPassword.value

Set default path using powershell UI Working Directory
$OFS = "\r \n"
$dot = "."
$fabricContent = (-joint ("apiSecret=", $fabricSecretKey, $OFS, "apiKey=", $fabricApiKey))
set-content fabric.properties $fabricContent

$keyContent = (-joint ("keyAlias=", $alias, $OFS, "keyPassword=", $keyPassword, $OFS, "storePassword=", $keyStore))
set-content key.properties $keyContent

$prodCode = $json.variables.ProdVersionCode.value
$prodMajor = $json.variables.ProdMajorNumber.value
$prodMinor = $json.variables.ProdMinorNumber.value
$prodPatch = $json.variables.ProdPatchNumber.value
$prodVersionName = (-joint ($prodMajor, $dot, $prodMinor, $dot, $prodPatch))

$versionContent = (-joint (
"PROD_VERSION_CODE=", $prodCode, $OFS, "PROD_VERSION_NAME=", $prodVersionName))
set-content version.properties $versionContent
get-content key.properties
get-content version.properties
Posted by: Guest on February-04-2021

Code answers related to "azure release pipeline to google play store"

Browse Popular Code Answers by Language