title: Want to configure build.gradle so that artifcatory user and pass are worked in both local and in Jenkins
body: <p>So basically this is what I want, I want to configure the artifactory server in build.gradle file like </p>
  
  <pre><code>Artifcatory {
      Contexturl = ***
        Resolve{
            Repository {
                 Repokey = **
                 Username = $artuser
                 Password= $artpass
          }
    }
  </code></pre>
  
  <p>}</p>
  
  <p>And I have put the artuser and artpass in the gradle.properties file in my local machine. But if I try it in Jenkins it will not be able to find the properties artuser and artpass</p>
  
  <p>So currently I have 2 build.gradle file one for local and one for Jenkins which is not having this artifcatory configuration. But configuring it in the build stage. so is there a way I could use only one build.gradle file so that it will work in both cases</p>