diff --git a/.appveyor/appveyor.yml b/.appveyor/appveyor.yml index 8f77f698d..1430d6ceb 100644 --- a/.appveyor/appveyor.yml +++ b/.appveyor/appveyor.yml @@ -48,7 +48,7 @@ install: build_script: - ps: | - if( $env:appveyor_repo_branch -eq 'master' ) + if( $env:appveyor_repo_branch -eq 'master' -or $env:appveyor_repo_branch -eq 'develop' ) { $apiUrl = 'https://ci.appveyor.com/api' $token = 'qts80b5kpq0ooj4x6vvw' @@ -56,7 +56,7 @@ build_script: "Authorization" = "Bearer $token" "Content-type" = "application/json" } - $RequestBody = @{ accountName = 'FlightControl-Master'; projectSlug = 'moose-include'; branch = 'master'; environmentVariables = @{} } | ConvertTo-Json + $RequestBody = @{ accountName = 'FlightControl-Master'; projectSlug = 'moose-include'; branch = "$env:appveyor_repo_branch"; environmentVariables = @{} } | ConvertTo-Json # get project with last build details $project = Invoke-RestMethod -method Post -Uri "$apiUrl/builds" -Headers $headers -Body $RequestBody }