Using jenkins pipeline, I have found that an environment property that takes variable substitution (see example below) doesn't get it's backslashes correctly reduced. I would have expected that both keys below start with "a\b". Instead, AAA_Key1 becomes "a
b 0", while AAA_Key2 becomes "a\b".
Current workaround is to use withEnv directly, which doesn't appear to suffer from this issue