给出带有特定管道的Jenkinsfile。我想通过不立即拉出子模块来节省特定运行器上的空间。因此,我尝试在结帐阶段拉出子模块:
...
stage('checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: '**']],
doGenerateSubmoduleConfigurations: false,
extensions:
[[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: false,
recursiveSubmodules: true,
reference: '',
trackingSubmodules: false
]],
submoduleCfg: [],
userRemoteConfigs:
[[credentialsId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
url: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']]
])
}
}
...
给定阶段的输出是
...
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout)
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
Stage "Build" skipped due to earlier failure(s)
...
为什么我至少没有收到错误消息?