Hi Michael,

It sounds like you are using a Free Style job, is that correct? Something
like this is pretty easy to do in pipeline, but can be difficult in Free
Style jobs. One way to do it is to write the value to a properties file in
the powershell script and then use the EnvInject plugin to inject the
value(s) from the properties file into the environment of the job using the
'Environment Properties File Path' item. Look for the  'Inject environment
variables for your job' build step when setting up the job.

Hopefully that will at least get you started down the right path.

Regards,

Alex


On Wed, Feb 26, 2020 at 7:41 AM Michael Renner <vbox4...@gmail.com> wrote:

> Moin,
>
>
> I am new to this group but I have been using jenkins for many years.
>
> Now I have a request that I don't know what to do next. My jenkins server
> (Linux) connect to an agent on a Windows server and calls a power shell
> script. The script reports a result back, for example, "day", "night",
> "red" or "blue". This should now be processed on the Jenkins server (a
> bash script). But how? An other build step would run at the Windows server
> again, a post build action won't start external processes like bash
> scripts. I could create a second job that runs on the Jenkins master
> itself. But how do I get the results of the Power Shell script?
>
> Grateful for hints
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/7604abe1-01fd-4f07-94c9-0352318ebba7%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/7604abe1-01fd-4f07-94c9-0352318ebba7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeE1V0He36Lnf3_bACrqOAWgsNbGEy6xr%2BN2rZdDBvVJQ%40mail.gmail.com.

Reply via email to