The sf CLI has a very useful feature that allows the transformation of metadata before it is being deployed using the sf project deploy command.
The configuration for this string replacement is conveniently placed into the sfdx-project.json file inside the project structure. This is very useful and it works perfectly when used with a CI/CD pipeline (eg. in our case works well with GitHub actions).
This is working as expected in DOC as well with the exception of environment dependent variables. And this is exactly where it is the most useful.
We need to have to option to transform the metadata based on what environment we are deploying to and while this is easily done in GitHub by inserting the correct environment before calling sf project deploy, it is not possible to do when DevOps Center does it.
It will be highly beneficial to at least have an environment variable (eg. NEXT_DEPLOYMENT_TARGET) that in DOC would be set to the name of the next deployment stage, making it easy for everyone to add that condition to their replacements configuration.
The sf CLI has a very useful feature that allows the transformation of metadata before it is being deployed using the
sf project deploy
command. The configuration for this string replacement is conveniently placed into thesfdx-project.json
file inside the project structure. This is very useful and it works perfectly when used with a CI/CD pipeline (eg. in our case works well with GitHub actions).This is working as expected in DOC as well with the exception of environment dependent variables. And this is exactly where it is the most useful. We need to have to option to transform the metadata based on what environment we are deploying to and while this is easily done in GitHub by inserting the correct environment before calling
sf project deploy
, it is not possible to do when DevOps Center does it. It will be highly beneficial to at least have an environment variable (eg. NEXT_DEPLOYMENT_TARGET) that in DOC would be set to the name of the next deployment stage, making it easy for everyone to add that condition to theirreplacements
configuration.Thanks, Cris