I'm in the middle of writing a Jenkinsfile so we can have one Jenkins job that handles multiple branches and multiple org configurations. For the multiple org configurations, I'm using the parallel mechanism so that a single code checkout gets deployed/tested using multiple orgs at the same time, with each org configured differently.
The most awkward org configuration is one where Platform Encryption is set up. The core recipe for this is available in this GitHub project wadewegner/sfdx-platformencryption. The specific part that is awkward for me is to turn on the encryption for the 50 or so fields that we want encrypted when the tests run.
What would be ideal is if someone has written an SFDX Plugin that looks something like this:
sfdx custom:object:field --object Contact --field Email --update --encrypted true
This signature is shamelessly based on sfdx shane:object:field, one of the many plugins shared at mshanemc/shane-sfdx-plugins.
Is such a plugin already written and posted somewhere? (Yes I could spend some time writing it myself, but I have plenty of customer-focussed work I should be doing instead.)
PS
Just looked more carefully at sfdx shane:object:field
and realized it writes a local field file rather than making a call to the org so probably not the right starting point.