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 in Jenkins by anonymous

edited Mar 6 118 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
140 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
64 views
0 votes
1 answer

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

Follow the below steps: 1.      Install the Groovy ...READ MORE

answered Aug 9, 2018 in Jenkins by Sophie may
• 9,430 points
383 views
0 votes
1 answer
0 votes
1 answer

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

Yes this is possible. Follow these steps. 1. ...READ MORE

answered Jun 20 in Jenkins by Arvind
• 1,650 points
57 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,240 points
95 views
+13 votes
2 answers
0 votes
1 answer