'Is it possible in Jenkins pipeline to do a job that creates new Dockerfile?

Is it possible in Jenkins pipeline to do a job that creates new Dockerfiles every time for a new development environment? If so, how practical is it? Tnx!



Sources

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

Source: Stack Overflow

Solution Source