Follow Extending with Shared Libraries guide to install the library into Jenkins.
Named it as sd
.
@Library('sd')_
def kubeLabel = getKubeLabel()
pipeline {
agent {
kubernetes {
label "${kubeLabel}"
cloud 'Kube mwdevel'
defaultContainer 'jnlp'
...