Stefan Wegener
Stefan Wegener

Reputation: 746

Bamboo custom deployment-project variables

In Bamboo, I want so take a build-release and deploy it on a target host. The target host should be variable.

As far as I know, it is not possible to run deployment-projects with customized deployment-variables (as it is possible to override plan-variables on custom-builds). My question is: is that true and if yes, what is the best way to achieve what I want?

Here are some thoughts I had during research regarding this issue:

Are there any better solutions/thoughts on this task?

Upvotes: 4

Views: 3620

Answers (2)

Alex
Alex

Reputation: 1639

target host should be variable

No, each host is a separate environment. Otherwise the notion of "promoting an environment" breaks apart. This may be a lot of work to implement and therefore I strongly advise using bamboo specs (in Java).

it is not possible to run deployment-projects with customized deployment-variables

I confirm: it's not possible. And again, it would break the notion of environment promotion. Rule of thumb: your environment setup should be immutable: no variable variance. The only difference b/n runs is the artifacts that are to be deployed.

Upvotes: 1

dhumketu
dhumketu

Reputation: 362

You can set variables in 'Other environment settings' in deployment project while configuring Environment. This way you will not have to run build when artifacts don't change. Just change variable value before deploying the artifact.

Upvotes: 0

Related Questions