How do I pass value from my Fake # script to the host build server (Jenkins)

0 votes

I have a build process defined in F# Fake script. I'm running this build script on a Jenkins node and everything is great.

However, I want to pass some results out of my script to the Jenkins (or any other build server that runs it).

Specifically, I would like to pass several strings to the Jenkins and use them in the next build step (in Jenkins terms) or in the post-build actions to archive artefacts.

How do I do that?de

Jul 11, 2018 in Jenkins by Nilesh
• 6,900 points
40 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You can use the EnvInject plugin to pass environment variables to further steps in a Jenkins build. It's not the best solution, but this is only option available.

You would need your F# code to write a properties file

then create a subsequent build step in Jenkins using the EnvInject plugin to read from that properties file.

answered Jul 11, 2018 by Kalgi
• 2,620 points

Related Questions In Jenkins

0 votes
1 answer

How do i move jenkins from one server to another?

Hey @Kiran, You can: Move a job from one ...READ MORE

answered Feb 12 in Jenkins by Imran
26 views
0 votes
1 answer

How do I secure my jenkins build?

Hey @Farah, follow these steps: Ensure global security ...READ MORE

answered Feb 12 in Jenkins by Imran
19 views
+2 votes
5 answers
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 9,050 points
92 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How Can I measure Jenkins Build Performance?

If you go to the Jenkins page ...READ MORE

answered Jul 16, 2018 in Jenkins by Kalgi
• 2,620 points
27 views
0 votes
1 answer

How can I point Jenkins to another .jenkins home directory?

I think this can help you out. Set ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,620 points
75 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.