Run batch command in jenkins

I’m running jenkins on windows 7 as a service.

I’d like to run a very simple job which will start my firefox. (for example)

  • Start Jenkins build using batch script
  • Jenkins always considers a build successful using batch/bat
  • What is the difference in command line argument syntax between bat and sh?
  • How to verify the current git branch in a Windows BAT file
  • How to run command in windows batch Command in jenkins
  • Run batch file with git pull in gitbash
  • I configured a free style project and set up the “Execute windows batch command” option.

    Here i have tried to insert couple of command which they all failed.

    Commands like “echo hello” or other native command working as expected.

    But command like “explorer ” – should open the mentioned directory, or “c:\firefox.lnk” (should open firefox) are not working.
    The jenkins seems to be running but after while the job fails with an error.

    How can i run these actions?


  • Queue TFS 2012 build from Jenkins
  • How to input password to git pull command?
  • In the Jenkins API is there a way to find the git commit of the last build?
  • Jenkins plus Git on same server
  • How do I get Jenkins to skip failed branches till they change?
  • Export/import jobs in Jenkins
  • One Solution collect form web for “Run batch command in jenkins”

    This might be a path issue, check if the System user has ‘explorer’ in its path. (see

    Additionally: Windows 7 does not allow service processes to create a UI. See this other stackoverflow question: Service starting a process wont show GUI C#

    Git Baby is a git and github fan, let's start git clone.