File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pipeline {
2525 }
2626 stage(' Document' ) {
2727 when{
28- expression { currentBuild. result != " FAILED" && currentBuild. changeSets != null && currentBuild. changeSets. size() > 0 }
28+ expression { currentBuild. currentResult != " FAILED" && currentBuild. changeSets != null && currentBuild. changeSets. size() > 0 }
2929 }
3030 steps {
3131 sh ' mvn -e -DskipTests site'
@@ -42,7 +42,7 @@ pipeline {
4242 stage(' Deploy' ) {
4343 when{
4444 branch ' master'
45- expression { currentBuild. result == " SUCCESS" && currentBuild. changeSets != null && currentBuild. changeSets. size() > 0 }
45+ expression { currentBuild. currentResult == " SUCCESS" && currentBuild. changeSets != null && currentBuild. changeSets. size() > 0 }
4646 }
4747 steps {
4848 sh ' mvn -e -Dmaven.test.skip=true source:jar javadoc:jar deploy'
You can’t perform that action at this time.
0 commit comments