def call() {
pipeline {
agent any
options {
timestamps()
skipDefaultCheckout() //删除隐式checkout scm语句
}
stages {
stage('test-share') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/sit']], extensions: [], userRemoteConfigs: [[credentialsId: 'vip', url: 'git']]])
echo 'test-share'
}
}
}
}
}
// vars/all_shared.groovy
@Library ("jr-shared-library") _
all_shared()