Since version 1.18, kubernetes plugin does not work with ConfigFileProvider anymore. In previous versions, you could place a configFileProvider inside a container block and the file would be placed inside de right container. After the update it goes only to jnlp's container.
As the config-file-provider did not change, this seems more an issue caused on the kubernetes site. As I never worked with kubernetes, this will definitely need to be fixed by someone who does know how k8 works.
I can not get git_previous_successful_commit by pipeline , free style , with git plug-in 4.22 installed, also tried other version of the plug-ins, none of them can get git_previous_successful_commit