how to get jenkins "EnvInject Plugin" property content value via Java code.

0 votes

How to get "properties content" key and value in Java code

Mar 6, 2019 in Jenkins by anonymous

edited Mar 6, 2019 527 views

Hey, what exactly are you trying to do? And why you need the properties content values in your java code?

Using "EnvInject Plugin" i have to pass key and value and those key and value i have to use in my java code as a web service.

In your job configure, under add build steps, you'll find an option saying Inject Environment variables in your job

This will inject all the variables you've mentioned in your properties content.

yes your understanding is right for the Job configuration but these properties content values i want to read in my Java code

No answer to this question. Be the first to respond.

Your answer

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

Related Questions In Jenkins

0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,810 points
373 views
0 votes
1 answer

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

You can use the EnvInject plugin to pass environment ...READ MORE

answered Jul 11, 2018 in Jenkins by Kalgi
• 2,620 points
135 views
0 votes
3 answers

How to get the Maven Version of a project in Jenkins?

Here is a snippet from our Jenkins ...READ MORE

answered Oct 4, 2019 in Jenkins by Petr Doležal
2,550 views
0 votes
1 answer
0 votes
2 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 44,350 points
759 views
0 votes
1 answer

How to do CI integration with code review tools

Here is an explanation. If you can switch ...READ MORE

answered Mar 26, 2018 in Jenkins by Atul
• 10,250 points
159 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,400 points
296 views
0 votes
1 answer