把 git step 放到 container 外面试试。
+ git(credentialsId: 'test-devops', url: 'https://gitlab.dev/fenghui/kubesphere-demo.git', branch: 'master', changelog: true, poll: false)
container('maven') {
- git(credentialsId: 'test-devops', url: 'https://gitlab.dev/fenghui/kubesphere-demo.git', branch: 'master', changelog: true, poll: false)