in shared librarian, under vars directory file is test.groovy
the pipeline code should start like below
def call () { pipeline { agent any stages { stage('stage_name') { } } } }