How can Jenkins on Linux server to trigger PowerShell script on a window server?

1,660 views
Skip to first unread message

Lily Fu

unread,
Apr 18, 2014, 3:57:03 PM4/18/14
to jenkins...@googlegroups.com

Hi,

 

I have a Jenkins server running on Redhat Linux server.

Wants to trigger a PowerShell script on a remote window’s server.

 

Can this be done?

 

Did some research, 

1.       Install PowerShellWebAccess on the windows’ server, a client (such as web brower) can have a PowerShell console

But, I don’t see how Jenkins to talk to this browser

2.       Have SSH session from Linux to window’s server

 

Has anyone done this before?

 

Thanks a lot.

 

Lily

Les Mikesell

unread,
Apr 18, 2014, 8:45:21 PM4/18/14
to jenkinsci-users
Can't you just add the windows host as a jenkins slave and use a job
restricted to that slave that runs whatever command you need?

--
Les Mikesell
lesmi...@gmail.com

Lily Fu

unread,
Apr 21, 2014, 11:17:13 AM4/21/14
to jenkins...@googlegroups.com
Thanks Les,

I am a junior on Jenkins. Have been hearing people talking about slave, but I was at at that level yet.

Thank you for pointing me the direction.
I will take a look of the slave configuration.

Thanks!

Lily
--
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.
For more options, visit https://groups.google.com/d/optout.

Lily Fu

unread,
Apr 21, 2014, 2:43:08 PM4/21/14
to jenkins...@googlegroups.com

Hi Les and all,

 

I am following the instruction

https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines

 

to setup a slave node on a window’s server, after I clicked Launch from the slave’s

browser (Jenkins url), I got:

 

Application Blocked by Security Settings:

Name: hudson.remoting.Launcher

Location: http://xxx.xxx.xx:8080  (master jenkin’s server)

Your security settings have blocked a self-signed application from running.

 

My questions: where should I look into this security setting?

Jenkin’s server? Firewall? Slave machine’s IE browser setting?  Jenken’s webserver?

 

Thanks a lot!

 

Lily

 

 

 

 

-----Original Message-----
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Les Mikesell
Sent: Friday, April 18, 2014 8:45 PM
To: jenkinsci-users
Subject: Re: How can Jenkins on Linux server to trigger PowerShell script on a window server?

 

On Fri, Apr 18, 2014 at 2:57 PM, Lily Fu <Lil...@nesassociates.com> wrote:

--

Lily Fu

unread,
Apr 21, 2014, 2:46:08 PM4/21/14
to jenkins...@googlegroups.com

On the slave window’s server, I installed

 

java version 7 update 55 JRE

 

Lily

Daniel Beck

unread,
Apr 21, 2014, 2:50:14 PM4/21/14
to jenkins...@googlegroups.com

On 21.04.2014, at 20:43, Lily Fu <Lil...@nesassociates.com> wrote:

> Your security settings have blocked a self-signed application from running.
>
> My questions: where should I look into this security setting?
> Jenkin’s server? Firewall? Slave machine’s IE browser setting? Jenken’s webserver?

None of the above.

https://www.java.com/en/download/help/java_blocked.xml

Les Mikesell

unread,
Apr 21, 2014, 2:52:47 PM4/21/14
to jenkinsci-users
On Mon, Apr 21, 2014 at 1:46 PM, Lily Fu <Lil...@nesassociates.com> wrote:
>
> On the slave window’s server, I installed
>
>
>
> java version 7 update 55 JRE

I think you need to go to control panel/java and either tune down the
security level or add your jenkins host as a site to allow. Depending
on your windows version it may also work to configure jenkins to
control the slave.

--
Les Mikesell
lesmi...@gmail.com

Lily Fu

unread,
Apr 21, 2014, 5:20:43 PM4/21/14
to jenkins...@googlegroups.com
Thanks Daniel and Les,

For now, I configured in Java Control Panel to add jenkin's webserver url
as allowed site and it's working now.

Lily


-----Original Message-----
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Les Mikesell
Sent: Monday, April 21, 2014 2:53 PM
To: jenkinsci-users
Subject: Re: How can Jenkins on Linux server to trigger PowerShell script on a window server?

Reply all
Reply to author
Forward
0 new messages