게시 단계에서 병렬 조치를 시도했지만 작동하지 않습니다.게시 실패 JenkinsFile이 작동하지 않습니다.
이 내 JenkinsFile입니다 :
이pipeline {
agent any
stages {
stage("test") {
steps {
withMaven(
maven: 'maven3', // Maven installation declared in the Jenkins "Global Tool Configuration"
mavenSettingsConfig: 'maven_id', // Maven settings.xml file defined with the Jenkins Config File Provider Plugin
mavenLocalRepo: '.repository') {
// Run the maven build
sh "mvn --batch-mode release:prepare -Dmaven.deploy.skip=true" --> it will always fail
}
}
}
stage("testing") {
steps {
parallel (
phase1: { sh 'echo phase1'},
phase2: { sh "echo phase2" }
)
}
}
}
post {
failure {
echo "FAIL"
}
}
}
그러나 여기 후 장애 조치가 비트 useles입니다 ... 내가 어떤 장소를 참조하지는.
모두에게 감사드립니다! 감사합니다.
나는 똑같은 문제가 있습니다! 이거 도와 줘? – Alan47