tag:help.appveyor.com,2012-11-13:/discussions/questions/35703-uat-and-production-buildsAppVeyor: Discussion 2019-03-22T11:00:10Ztag:help.appveyor.com,2012-11-13:Comment/470896892019-03-19T18:18:52Z2019-03-19T18:18:52Zuat and production builds<div><p>I see that you are using <a href="https://www.appveyor.com/docs/branches/#conditional-build-configuration">conditional build configuration</a> but both conditions are the same.<br>
i.e.<br></p>
<pre>
<code> branches:
only:
- master</code>
</pre>
I haven't addressed your deployment problem since this stood out to me first as a possible mistake.</div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/470896892019-03-20T08:51:57Z2019-03-20T08:51:57Zuat and production builds<div><p>Owen,<br>
So I am going to update the uat part to</p>
<p>branches: only: - uat</p>
<p>so it will now use different branch.</p>
<p>At the project level in settings default branch has been set to master and branches to build has been set to all (nb have inherited this, first time using app veyor, have experience with teamcity and octopus).</p>
<p>When i run the build which is at project level am i right in assuming it creates the artifact based on master which is default branch. Then when deploy is run for the different environments will it use the yaml file settings to transform for the different environments? Still trying to get my head round how it all ties together.</p>
<p>Regards</p>
<p>Ismail</p></div>ismail.mayattag:help.appveyor.com,2012-11-13:Comment/470896892019-03-21T01:47:08Z2019-03-21T01:47:08Zuat and production builds<div><p>I'm not exactly sure of your question but you may wan to give <a href="https://www.appveyor.com/docs/build-configuration/#appveyoryml-and-ui-coexistence">this</a> a quick read.<br>
By <em>project level</em> you mean when you start a build from the UI? If so, yes, default branch will be built, and the part of your config under<br></p>
<pre>
<code> branches:
only:
- master</code>
</pre>
will be used.</div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/470896892019-03-22T11:00:01Z2019-03-22T11:00:01Zuat and production builds<div><p>Owen,</p>
<p>Ok mystery solved. So first issue was as you rightly pointed out i was looking at wrong branch for uat. The other issue was my bitbucket was missing the webhook url from appveyor. Once i added that any commits to uat and i get auto build and deploy. Commits to master and i get build, deploy is manual as expected.</p>
<p>Many thanks for your help.</p>
<p>Regards</p>
<p>Ismail</p></div>ismail.mayat