Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58187

Jenkins unable to launch batch file

XMLWordPrintable

      Hi Team, 

       

      I am new to Jenkins and would like to execute some batch scripts.

      Steps performed:

      1) Create a python script with imported selenium libraries

      2) Download and install Jenkins

      3) Download chromedriver

      4) Create a new item in Jenkins (Freestyle project with build action: execute windows batch command).  Command: call "C:\Users\sheick.m.busgeet\Desktop\JenkinsPythonSelenium\SimpleScript.bat"

       

      When i launch the batch file outside Jenkins, everything works but when i launch through Jenkins, it does not work and a debug file is generated (see attached).

       

      Kindly help,

      Regards,

      Sheick

        1. chromedriver.exe
          8.00 MB
          Sheick Busgeet
        2. debug.log
          1.0 kB
          Sheick Busgeet
        3. Demo.py
          0.2 kB
          Sheick Busgeet
        4. SimpleScript.bat
          0.1 kB
          Sheick Busgeet

            kohsuke Kohsuke Kawaguchi
            sheick Sheick Busgeet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: