You may run into a scenario where you want to exclude a Node(s) from deployment. This can be accomplished via the following steps. In a feature branch or the branch in which you complete your development:
- Open the Node(s) you wish to exclude from deployment
- In the Node Properties of the Node(s), toggle off the "Deploy Enabled" option and confirm the the message: "Node not enabled for deploy" is displayed.
- Commit your changes to Git
- When completing your Deploy(s), review your deployment plan and confirm the Node(s) are not listed*. (* see the first item to remain aware of below)
There are a few items to remain aware of when using this approach to exclude a Node(s) from deployment:
- If you toggle on this setting for a Node after you have previously deployed it, the Node will be dropped on your next deploy operation. This is the expected behavior for existing Nodes, as the deployment operation is bringing the existing environment up to the desired state depicted in what you are deploying; as the Node has now been excluded from the desired state (deployment), it's being assumed that it should no longer should exist and should be dropped.
- If you have any other feature branches in existence at the time your feature branch is created for this activity, and the Node(s) you edit this setting in are also edited in another branch, you will need to be prepared to resolve merge conflicts when you go to merge the feature branches back into your main branch.
- If you later want to include this Node(s) in deployment, you will have to reverse the process described above so "Deploy Enabled" is turned back on.