'How to pull a file from git and put in workspace before the Jenkins build get started

So I'm trying to pull a file from git and put in workspace in order to load that file to be in parameterized job in Jenkins (source value) .property file in order to load choices. I need this operation to be automated. The file part



Sources

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

Source: Stack Overflow

Solution Source