...
Code Block |
---|
echo 'Uploading the Delft-FEWS Config file' # login and store session cookie curl -u $(ApiUser):$(ApiKey) --dump-header headers.txt --cookie cookie.txt --cookie-jar cookie.txt $(AdminInterfaceApi)/login set csrfToken=$(cat headers.txt | grep X-CSRF-TOKEN:) csrfToken=$2 | cut -c15- | tr -d '\n' | tr -d '\r' ) echo 'uploading now ...' curl -v -H "X-CSRF-TOKEN: ${csrfToken}" --cookie cookie.txt -F file=@'$(System.DefaultWorkingDirectory)/_AzureDevopsRepo/drop/Config.zip' $(AdminInterfaceApi)/configmanagement/fewsconfig curl --cookie cookie.txt $(AdminInterfaceApi)/systemstatus curl --cookie cookie.txt $(AdminInterfaceApi)/logout |
...