Skip to content

Commit

Permalink
testing #203, this will be reverted too
Browse files Browse the repository at this point in the history
  • Loading branch information
onurctirtir committed Jan 29, 2021
1 parent 9a42714 commit 22ac09a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
12 changes: 9 additions & 3 deletions azure/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"defaultValue": "citustestcluster",
"type": "string"
},
"git_username": {
"type": "securestring"
},
"git_token": {
"type": "securestring"
},
"adminUsername": {
"type": "string",
"defaultValue": "pguser",
Expand Down Expand Up @@ -165,7 +171,7 @@
"name": "[variables('ppgName')]",
"location": "[parameters('location')]",
"properties": {

}
},
{
Expand Down Expand Up @@ -384,10 +390,10 @@
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"settings": {
"commandToExecute": "[concat('sh init.sh ', copyIndex(), ' ', variables('numberOfInstances'), ' ', variables('storageAcctName'), ' ', listKeys(variables('storageAcctName'),'2017-10-01').keys[0].value, ' ', parameters('branchName'))]",
"commandToExecute": "[concat('sh init.sh ', copyIndex(), ' ', variables('numberOfInstances'), ' ', variables('storageAcctName'), ' ', listKeys(variables('storageAcctName'),'2017-10-01').keys[0].value, ' ', parameters('branchName'), ' ', parameters('git_username'), ' ', parameters('git_token'))]",
"fileUris": [
"https://raw.githubusercontent.com/citusdata/test-automation/master/azure/init.sh",
"https://raw.githubusercontent.com/citusdata/test-automation/master/hammerdb/cache_git_creds.sh"
"https://raw.githubusercontent.com/citusdata/test-automation/valgrind-merge/hammerdb/cache_git_creds.sh"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion azure/create-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "waiting a long time to create cluster, this might take up to 30 mins depen
export BRANCH="valgrind-merge"

# below is the default create cluster command
CREATE_CLUSTER_COMMAND=(az group deployment create -g ${rg} --template-file azuredeploy.json --parameters @azuredeploy.parameters.json --parameters sshPublicKey="${public_key}" branchName="$BRANCH")
CREATE_CLUSTER_COMMAND=(az group deployment create -g ${rg} --template-file azuredeploy.json --parameters @azuredeploy.parameters.json --parameters sshPublicKey="${public_key}" branchName="$BRANCH" git_username="${GIT_USERNAME}" git_token="${GIT_TOKEN}")

# if VALGRIND_TEST variable is not exported, set it to 0
is_valgrind_test=${VALGRIND_TEST:=0}
Expand Down
3 changes: 3 additions & 0 deletions azure/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,8 @@ find_private_ips() {

find_private_ips "$@"

export GIT_USERNAME=$6
export GIT_TOKEN=$7

# cache git credentials so that we can clone a private repository with caching enabled
./cache_git_creds.sh

0 comments on commit 22ac09a

Please sign in to comment.