Need to understand logic of parallel run in step tags

13 views
Skip to first unread message

Vikas Bhandari

unread,
Jul 13, 2022, 3:56:16 PM7/13/22
to Jenkins Users
Hi Jenkin User,

We have the framework in which we are around 9 test runner file. We want to invoke all the test runner file at one go. i.e. Parallel. I want to understand how I can achieve the same.

pipeline{
agent{
lable 'qa'
}
options{
disableConcurrentBuilds()
}
stages
    {    
        stage('Clean'){
            steps
            {
            dir()
            deleteDir)(
            }
        }
    }
        stage('Testing'){
        agent{
            docker{
                image
                }
            }
            steps
            {
            echo 'run'
            sh 'mvn clean'
            echo 'Run Test'
            sh 'mvn -Dtest=runnerfile test'
            }
        }
}

Thanks for the help
Reply all
Reply to author
Forward
0 new messages