Jenkins pipeline does not proceed even if Selenium execution finishes

7 views
Skip to first unread message

Gajanan Mahajan

unread,
Apr 21, 2020, 4:04:31 AM4/21/20
to Jenkins Users
I have a pipeline with stage for Selenium execution where execution of Selenium tests takes around 5 hours. 

In 'Selenium Execution' stage, I've code to execute Selenium tests then taking backup of results. Here pipeline executes on say `ABC` machine and Selenium stage execution on say `XYZ` client. I've following code to achieve the same -

    pipeline {
        agent {lable 'ABC'}
    
        stages {
    
            stage('Selenium Execution') {
                steps {
                  node('XYZ')
                    script {
                             <method call to execute Selenium tests is here>
                             <method call to take results backup here> 
                        }
                    }
                  }
                }
            }
    
        }
    }

When triggered build, we can see Selenium tests are completely executed by looking at console log. But after that next code to take results backup is not executed and also no error is seen for the same.

Pipeline stuck there. Could you please help me to understand what could be the problem here or what is a way to identify problems?
Reply all
Reply to author
Forward
0 new messages