Extending on Slide's idea, you can write the result to a file in the
workspace and save that file as a build artifact. Then in the downstream
job that runs on the master you can retrieve the artifact from the
upstream job (copy artifacts from other job) and read the value in your
bash script. Or similarly, if you write the file in the upstream job as
a properties file "VARNAME=$value" then you can use that file to set a
parameter to pass to the downstream job (parameters from properties file).
Eric
On 2/26/2020 8:26 AM, Michael Renner 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 [email protected]
<mailto:[email protected]>.
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>.
--
Eric Pyle
Siemens Digital Industries Software
Simulation and Test Solutions, Product Development
[email protected]
https://www.sw.siemens.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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ec42bd65-5454-ba03-8825-148a67323ca1%40siemens.com.