Basic requirements for a Jenkins shared library to be used in a Pipeline Code are -
E.g.
#!/urs/bin/env groovy @Library('[email protected]')_