Hi Folks, Today we are configuring our Jenkins to replace tokens in code before deployment. Please follow below steps. Create Project in git ( github or any other git providing tool) Create a project which will contains all token values. in my case here is public demo project . Deploy it in Jenkins as freestyle project , select git in Source Code Management and paste your git repository URL. If it is public then you don't need credentials to enter otherwise you have to. Build your project and check console output. Copy directory structure ( ref: below console snapshot). This is the physical directory structure of our deployed code in Jenkins hosted docker/OS. Configure project (in which token need to be changed) Create build.xml in your project root and past below code <project name="demo-app-tokenparser" default="useregex" basedir="."> <target name="useregex"> <property file="/var/jenkins_home/works