Shared Library Set-up (Dynamic Shared Library)
STEP 1: Create a git reporitory (shared-library)
STEP 2: Create folder by the name "vars" in the root of git reporitory
STEP 3: Create shared library script with .groovy type (greetUser.groovy)
STEP 4: Manage Jenkins -> Configure System -> Global Pipeline Libraries -> Add library_name -> any name Default version - Branch name where we have our library scripts Retrieval method -> Modren SCM
STEP 5: In piepline job import the library @Library directive @Library('<library_name>')_ // call the script by its name greetUser 'username'