Running a command

23 views
Skip to first unread message

test2...@gmail.com

unread,
Sep 1, 2017, 9:19:44 AM9/1/17
to Jenkins Users
Hi

I am new user to Jenkins and am blocked at one point. In my case I created a freestyle project and then in the build I choose "execute windows batch command" and here I want to go a directory and there is a bat file, I would like to run it: To be precise in the command prompt I would like to have the following:

cd c:\xyz\bin
c:\xyz\bin>asadmin start-domain 

How do I do it? 

I am really sorry for the basic question. But I tried looking for it, and I still dont understand properly. I would be grateful, if someone could help me in this regard?

Thank you & Regards,
Fred

Richard Ginga

unread,
Sep 1, 2017, 9:32:20 AM9/1/17
to jenkins...@googlegroups.com
you wouldjust put this in the batch step:

cd c:\xyz\bin
call asadmin start-domain 

the "call" makes jenkins wait for the batch file to complete

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/25932e0b-f8e1-4c7c-a9aa-e277795d79c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dick Ginga
Build Engineer

test2...@gmail.com

unread,
Sep 1, 2017, 9:38:55 AM9/1/17
to Jenkins Users
It worked! Thank you so much. Sorry for the basic question.

Regards,
Fred


On Friday, 1 September 2017 15:32:20 UTC+2, Richard Ginga wrote:
you wouldjust put this in the batch step:

cd c:\xyz\bin
call asadmin start-domain 

the "call" makes jenkins wait for the batch file to complete
On Fri, Sep 1, 2017 at 9:17 AM, <test2...@gmail.com> wrote:
Hi

I am new user to Jenkins and am blocked at one point. In my case I created a freestyle project and then in the build I choose "execute windows batch command" and here I want to go a directory and there is a bat file, I would like to run it: To be precise in the command prompt I would like to have the following:

cd c:\xyz\bin
c:\xyz\bin>asadmin start-domain 

How do I do it? 

I am really sorry for the basic question. But I tried looking for it, and I still dont understand properly. I would be grateful, if someone could help me in this regard?

Thank you & Regards,
Fred

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages