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,880 points
99 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,620 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 in Jenkins by Sirajul
• 30,540 points
1,021 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 in Jenkins by Sirajul
• 30,540 points
48 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
180 views
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
73 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 in Jenkins by Sirajul
• 30,540 points
304 views