# Conditional State Promotion

**URL:** <https://www.finalbuilder.com/forums/t/conditional-state-promotion/5013>\
**Category:** Discussion\
**Created:** [July 19, 2013, 1:56am UTC](https://www.finalbuilder.com/forums/t/conditional-state-promotion/5013 "2013-07-19T01:56:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [July 19, 2013, 1:56am UTC](https://www.finalbuilder.com/forums/t/conditional-state-promotion/5013/1 "2013-07-19T01:56:24Z")

</div>

Currently i'm having 4 stages:

**Build ,Test, Package, Deploy**

The first 2 stages should always run. Well, they do perfectly, everything good.

The **Package** stage works as well and needs to be promoted manually as configured. But additionally, i have configured a nightly build trigger, which i want to have automatically have executed the **Package** stage. Well, i'm currently not able to have promotion depending on a variable or something like this (which could be set by the trigger).

Of course, i could move the actions from the stage **Package** to the stage **Test** or **Build** and execute them by condition but that's no really matching the concept of stages.

In short words:

I want to manually promote my **Package** stage to be able to package every build but i should be able to force promotion (e.g. by variable or an action or whatever) for a certain build.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [July 20, 2013, 3:49am UTC](https://www.finalbuilder.com/forums/t/conditional-state-promotion/5013/2 "2013-07-20T03:49:10Z")

</div>

Hi Christian   
  
 During early development there was a Promote action, not sure why it was removed. I’ll look into this, my thinking is to add Promote Conditions which must be met for an automatic promote (of course if there are no conditions then the automatic promote will work as before).

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [July 21, 2013, 10:19am UTC](https://www.finalbuilder.com/forums/t/conditional-state-promotion/5013/3 "2013-07-21T10:19:50Z")

</div>

Hi Christian   
  
 This feature will be in the next update planned for tomorrow, assuming we don’t hit any snags during testing tomorrow morning. For backwards compatibility, if Automatic Promote is checked, then the conditions are ignored.

---

<div class="post-metadata">

**Author:** ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)\
**Post date:** [July 21, 2013, 8:15am UTC](https://www.finalbuilder.com/forums/t/conditional-state-promotion/5013/4 "2013-07-21T08:15:33Z")

</div>

sounds great. i’ll have a look immediately!
