'include local.properties file in android jenkins build

I am trying to set up jenkins pipeline for android app. we are not commiting the local.properties file on git server for security reasons. now the problem is this local.properties file contains few variables that i am accessing from build.gradle and since it is not committed, jenkin build unable to locate this file and build fails. How can i add this configuration in my jenkins job?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source