Doubt Regarding Jenkins Shared Libraries

0 votes
Hello All,

I have doubt.The way we declare a variable while writting any shared lib is eg def  variablename =

But i have seen at some place.

def call(){

env['anyname'] = 'anyvalue'  

}

My doubt is what does env['anyname'] does.I mean is it a way to define a variable. or what does it define
Jul 13, 2020 in Jenkins by omkarnik
• 120 points
91 views
Can you share the full 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

+1 vote
0 answers

Multibranch pipeline job not triggered when using shared libraries

I would highly appreciate if you could ...READ MORE

May 5, 2020 in Jenkins by Ubaid
• 130 points
552 views
+5 votes
5 answers

Jenkins properties file

Follow these steps: 1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE

answered Aug 2, 2018 in Jenkins by lina
• 8,220 points
17,968 views
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 7,020 points
3,087 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,280 points
738 views
0 votes
1 answer

any way to integrate Jenkins with ServiceNow?

Now, there is no official servicenow support ...READ MORE

answered Apr 10, 2018 in Jenkins by DareDev
• 6,890 points
2,699 views
0 votes
1 answer

Why is it displaying Jenkins build failure for Android app

I think you should try this. Try Uninstalling ...READ MORE

answered Apr 12, 2018 in Jenkins by shubham
• 7,320 points
585 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
945 views
+2 votes
1 answer