Fuck me, I really managed to use an environ variable that's already occupied by jenkins itself. This is frustrating.