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
• 7,060 points
1,390 views

1 answer to this question.

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,680 points

Related Questions In Jenkins

0 votes
2 answers

How do i move jenkins from one server to another?

1. Copy all the files in your JENKINS_HOME directory over ...READ MORE

answered Aug 2, 2019 in Jenkins by Sirajul
• 59,230 points
52,821 views
0 votes
1 answer
0 votes
2 answers

How do I secure my jenkins build?

Anyone can make use of the URL ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 59,230 points
1,427 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 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,680 points
2,207 views
0 votes
2 answers

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

Here are the options you have: a) Assuming ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 59,230 points
5,026 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP