remove leading and trailing quote (#397)
* remove leading and trailing quote * update setup.bat to remove quotes from cosmosdb.key * switch to openjdk8 because oraclejdk8 of travis fails to install
This commit is contained in:
Родитель
6db6c8b960
Коммит
aab78b64d4
|
@ -1,6 +1,6 @@
|
|||
language: java
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
- openjdk8
|
||||
|
||||
sudo: required
|
||||
install: true
|
||||
|
|
|
@ -31,6 +31,7 @@ for /f "tokens=*" %%a in (%createcmd%) do (set cosmosdburi=%%a)
|
|||
|
||||
set listcmd='az cosmosdb keys list --name %dbname% --resource-group %resourcegroup% --query primaryMasterKey'
|
||||
for /f "tokens=*" %%a in (%listcmd%) do (set cosmosdbkey=%%a)
|
||||
set cosmosdbkey=%cosmosdbkey:"=%
|
||||
echo %cosmosdbkey%
|
||||
|
||||
goto :end
|
||||
|
|
|
@ -18,4 +18,4 @@ az group create -l westus -n $resourcegroup 2>1 > /dev/null
|
|||
cosmosDbUri=$(az cosmosdb create --name $dbname --resource-group $resourcegroup --kind GlobalDocumentDB --query documentEndpoint)
|
||||
cosmosDbKey=$(az cosmosdb keys list --name $dbname --resource-group $resourcegroup --query primaryMasterKey)
|
||||
|
||||
echo $cosmosDbKey
|
||||
echo $cosmosDbKey | sed -e 's/^"//' -e 's/"$//'
|
||||
|
|
Загрузка…
Ссылка в новой задаче