Currently it is possible to use a variable value, but not to change it while a task is running.
This would be useful to allow one Task/Stage to store a value in the server so that other Task/Stage can have access to it.
Atlassian answer
Modifying global and plan variables will not be implemented due to concurrency issues that would be created.
However, since Bamboo 5.7 you can use Inject Variables task to add variables to "result" scope and use them later on, in subsequent Task, Stages and to create deployment release.
[BAM-10272] Allow Tasks to change Global and Plan variables
Workflow | Original: JAC Suggestion Workflow [ 3016701 ] | New: JAC Suggestion Workflow 3 [ 3612367 ] |
Status | Original: RESOLVED [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Confluence Workflow - Public Facing v4 [ 2700715 ] | New: JAC Suggestion Workflow [ 3016701 ] |
Issue Type | Original: Improvement [ 4 ] | New: Suggestion [ 10000 ] |
Workflow | Original: Bamboo Workflow 2016 v1 [ 1417036 ] | New: Confluence Workflow - Public Facing v4 [ 2700715 ] |
Description |
Original:
Currently it is possible to *use* a variable value, but not to *change* it while a task is running.
This would be useful to allow one Task/Stage to store a value in the server so that other Task/Stage can have access to it. |
New:
Currently it is possible to *use* a variable value, but not to *change* it while a task is running.
This would be useful to allow one Task/Stage to store a value in the server so that other Task/Stage can have access to it. h3. Atlassian answer {quote}Modifying global and plan variables will not be implemented due to concurrency issues that would be created. However, since Bamboo 5.7 you can use Inject Variables task to add variables to "result" scope and use them later on, in subsequent Task, Stages and to create deployment release. {quote} |
Workflow | Original: Bamboo Workflow 2014 v2 [ 617471 ] | New: Bamboo Workflow 2016 v1 [ 1417036 ] |
Resolution | New: Answered [ 9 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: Bamboo Workflow 2014 [ 603362 ] | New: Bamboo Workflow 2014 v2 [ 617471 ] |
Workflow | Original: Bamboo Workflow 2010 [ 355225 ] | New: Bamboo Workflow 2014 [ 603362 ] |
Labels | New: pm |