I have written a shared library in groovy which is being used by many other Jenkins Declarative jobs. Those jobs use this shared library function and pass in the required values which then will be loaded into the shared library when the function runs.
Here the variable is APP_NAME which should be passed by the user and then which will be loaded into a shared library function.
New_APP="${APP_NAME}
This doesn’t work and returns nullNew_APP=this.APP_NAME
This works
Actually, both should work since it's groovy but the only second case seems to work. Any ideas why?