title: Passing String from Jenkins to Java code
body: <p>My framework consists of <strong>TestNG + Cucumber +Jenkins</strong> , I'm running the job using bat file configuration in <strong>jenkins</strong>. </p>
  
  <p>My doubt is , I have a class file to launch the browser and I pass string value to  if loop saying , </p>
  
  <p>if string equals <strong>"chrome"</strong> then launch the Chrome browser and soon.
  Is there a way to pass the chrome value from <code>jenkins</code> into class file ?</p>
  
  <p><strong>example :</strong></p>
  
  <pre><code>public class launch(){
  
  public static String browser ="chrome"
  
  public void LaunchBrowser() throws Exception{
  
          if (browser.equalsIgnoreCase("chrome")) 
          {
  launch chrome driver
  }
  
  } 
  </code></pre>
  
  <p>Now i would like to pass the <code>static string</code> value from jenkins , </p>
  
  <p>Help is appreciated.</p>
  
  <p>Thanks in advance.</p>