Jenkins Pipeline Function Return Value