How to automatically promote an Azure web app to production, if it passes all the integration tests -


i've got asp.net mvc web app set of selenium ui integration tests it. want put in azure, , apply continuous delivery this:

  1. i commit change git repository
  2. azure notices commit, gets latest code, builds it, , deploys test environment
  3. azure runs unit tests on code, , fails build if tests fail
  4. azure runs integration tests on test environment, , fails build if tests fail
  5. if tests pass, promote code production

this seems logical pipeline me i've struggled working.

i've managed step 3. creating 2 web apps, e.g. muppet , muppetstaging. muppetstaging environment automatically updated on each commit, that's great start. edited deploy.cmd perform unit tests. fails build when unit tests fail. that's great too.

the integration testing hard bit. before deployment has been completed, can't integration test current build - because it's not been deployed yet. best integration test previous version... not pending version. , if could, how promote successful build production?

i know there "staging slot" concept don't want have press "swap" button change production, defeat concept of cd. there "auto swap" again don't think takes integration testing account.

i've been looking @ tutorials relating kind of issue no-one seems have requirements exactly... either it's not possible or i'm doing wrong.

let me see if can , answer of question.

the integration testing hard bit. before deployment has been completed, can't integration test current build - because it's not been deployed yet.

there post deployment hook trigger after deployed still within deployment process.

https://github.com/projectkudu/kudu/wiki/post-deployment-action-hooks

there "auto swap" again don't think takes integration testing account.

if testing post deployment hook, if test failed fail deployment operation, "auto swap" shouldn`t trigger. if please file bug in project kudu


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -