File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -963,7 +963,9 @@ pipeline{
963963
964964 stage(' dhs-test' ) {
965965 agent { label ' dhfLinuxAgent' }
966- steps { invokeDhsTestJob() }
966+ steps{timeout(time : 1 , unit : ' HOURS' ){
967+ catchError(buildResult : ' SUCCESS' , catchInterruptions : true , stageResult : ' FAILURE' ) {invokeDhsTestJob()}
968+ }}
967969 post {
968970 failure {
969971 println (" ${ STAGE_NAME} failed" )
@@ -972,7 +974,9 @@ pipeline{
972974
973975 stage(' dhcce-test' ) {
974976 agent { label ' dhfLinuxAgent' }
975- steps { invokeDhcceTestJob() }
977+ steps{timeout(time : 1 , unit : ' HOURS' ){
978+ catchError(buildResult : ' SUCCESS' , catchInterruptions : true , stageResult : ' FAILURE' ) {invokeDhcceTestJob()}
979+ }}
976980 post {
977981 failure {
978982 println (" ${ STAGE_NAME} failed" )
You can’t perform that action at this time.
0 commit comments