How I pass params from Jenkins to Gradle

Here is a topic explaining how to unzip with Gradle

and after you can perform a copy to replace your xml file

You also have the Gradle Zip task to rebuild your zip if needed
https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Zip.html