title: Files in .gitignore are getting over-written in Jenkins
body: <p>I want connection_util.py file to be ignored by Jenkins when deploying code in AWS lambda from bitbucket.
  Using below - </p>
  
  <pre><code>/env
  /.vscode
  /ve
  /.idea
  /helper/connection_util.py
  </code></pre>
  
  <p>But when executing the build, it over-writes the file. 
  However, it is working fine in the local environment.</p>
  
  <p>Is there something else I need to do to gitignore a file in Jenkins.</p>