shaowenchen
pipeline {
agent {
node {
label ‘default’
}
}
stages {
stage(‘ss’) {
steps {
git(url: ‘http://192.168.100.2/root/test1.git’, credentialsId: ‘sss’, changelog: true, poll: false)
}
}
stage(‘sds’) {
steps {
sh ’echo \‘hello\’'
}
}
}
}
写了一个只是测试一下,查看pod没有起agent的pod
