tag:help.appveyor.com,2012-11-13:/discussions/questions/55905-how-can-one-set-retries-when-deploying-to-environmentAppVeyor: Discussion 2022-01-16T21:01:58Ztag:help.appveyor.com,2012-11-13:Comment/494614262021-11-03T15:00:26Z2021-11-03T15:00:26ZHow can one set retries when deploying to environment?<div><p>Hi Marius,</p>
<p>You can do a script calling AppVeyor API with retries to start a new deployment: <a href="https://www.appveyor.com/docs/api/environments-deployments/#start-deployment">https://www.appveyor.com/docs/api/environments-deployments/#start-d...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/494614262021-11-12T09:39:08Z2021-11-12T09:39:09ZHow can one set retries when deploying to environment?<div><p>Does this mean that there is nothing I can do in my appveyor.yml file to get it to retry whenever it fails a deployment? This is becoming a thorn in the side with 1/3 deployments failing on one or more servers, so we need to constantly watch the deployments (the project status is green even if the deployment fails on one of 20 servers for instance).</p>
<p>It seems like there really should be an easier solution to this.</p></div>Marius Mikelsentag:help.appveyor.com,2012-11-13:Comment/494614262021-11-16T04:11:35Z2021-11-16T04:11:35ZHow can one set retries when deploying to environment?<div><p>Customers implement scripts using AppVeyor REST API checking deployments status. Like, have environment deployments in <code>deploy</code> section and then a PS loop checking the status of N last deployments in <code>after_deploy</code> section.</p></div>Feodor Fitsner