Run command command in jenkins

I am running jenkins on Windows 7 as a service.

I would like to start a very simple job that will launch my firefox. (eg)

I configured the free style project and set the option "Run batch Windows command".

Here I tried to insert a couple of teams that all failed.

Commands such as echo hello or another command that works as expected.

But a command like "explorer" should open the specified directory, or "c: \ firefox.lnk" (should open firefox) do not work. It seems that jenkins is working, but after the job failed with an error.

How can I run these actions?

Thanks.

+4
source share
1 answer

This may be a path issue, check to see if the system user has an explorer in their path. (see http://antagonisticpleiotropy.blogspot.nl/2012/08/running-jenkins-in-windows-with-regular.html )

Optional: Windows 7 does not allow user interface creation processes. See this other stackoverflow question: Service starting process does not display C # GUI

+3
source

Source: https://habr.com/ru/post/1490047/


All Articles