Hi mukesh, Do you have any end to end automation framework code which covers hi integrated with database connection to check few queries + validating the result of database from the result of api response... And then passing same value to a second application
Hi, i have 16 classes in testng with multiple tests, when i run testng file from.jenkin, only sing test case execute drom each class, not all tesy cases execute, how i solve it?
@@PradeepKumar-ld7vx If you are using a Jenkinsfile in your repository to define the pipeline, you can use the env.BRANCH_NAME variable to determine the name of the branch that is currently being built. You can use this variable to make decisions in your pipeline, such as running different stages or steps depending on the branch name. For example, you can use a conditional statement like this: if(env.BRANCH_NAME == 'development') { // add steps to execute jenkins job based on cron pattern } else if(env.BRANCH_NAME == 'feature/my-feature') { // add steps to execute jenkins job based on cron pattern }
@@Mukeshotwani could you please give me code for job scheduling using jenkins file in groovy as you suggested like= if(env.BRANCH_NAME == 'development') { // add steps to execute jenkins job based on cron pattern } else if(env.BRANCH_NAME == 'feature/my-feature') { // add steps to execute jenkins job based on cron pattern } i will be very thankful
Hi Mukesh, I have a requirement to run all tests in 3 different client pool, How can I achieve this? is it possible by passing batch commands in Jenkin job?
Hi Rahul, you can do this many diff ways. 1- Create 3 window/shell commands in single job 2- Create 3 diff job one for each 3- You can use pipeline with stages.
Thank you so much mukesh for creating this jenkins playlist.
This is what was required
Thank you Piyush 🙏
Good explanation. Thanks for the efforts !!👍
Hi mukesh,
Do you have any end to end automation framework code which covers hi integrated with database connection to check few queries + validating the result of database from the result of api response... And then passing same value to a second application
Hi Chitranshi, you can use Serenity framework. But still these scenarios you need to build. from your side.
How to create another job B that should automatically build only when job A build is successful and also to generate a jar file using maven?
I have video on this too, please check my playlist.
Could you please tell which video?
Could you please tell the video thumb nail...
@@nikhithaa3202 th-cam.com/video/_1EgoteXRoc/w-d-xo.html
You can use post build action in Jenkins to generate artifact
nice video. Thank you very much!!!
Welcome 😊
Hi, i have 16 classes in testng with multiple tests, when i run testng file from.jenkin, only sing test case execute drom each class, not all tesy cases execute, how i solve it?
Hi,
how to schedule builds run every minit of every hour of every day
Please tell me the.
Hi please use below cron pattern for this * * * * *
@@Mukeshotwani thank you mukesh
Hi Mukesh
There are dev,main,and release branches followed by development team, you need to setup build from all branches how?
@@PradeepKumar-ld7vx If you are using a Jenkinsfile in your repository to define the pipeline, you can use the env.BRANCH_NAME variable to determine the name of the branch that is currently being built. You can use this variable to make decisions in your pipeline, such as running different stages or steps depending on the branch name. For example, you can use a conditional statement like this:
if(env.BRANCH_NAME == 'development') {
// add steps to execute jenkins job based on cron pattern
} else if(env.BRANCH_NAME == 'feature/my-feature') {
// add steps to execute jenkins job based on cron pattern
}
@@Mukeshotwani could you please give me code for job scheduling using jenkins file in groovy as you suggested like=
if(env.BRANCH_NAME == 'development') {
// add steps to execute jenkins job based on cron pattern
} else if(env.BRANCH_NAME == 'feature/my-feature') {
// add steps to execute jenkins job based on cron pattern
}
i will be very thankful
Hi Mukesh,
will build periodically work ?,If my laptop is switch off .
OSM explanation
Hi Mukesh,
I have a requirement to run all tests in 3 different client pool, How can I achieve this? is it possible by passing batch commands in Jenkin job?
Hi Rahul, you can do this many diff ways.
1- Create 3 window/shell commands in single job
2- Create 3 diff job one for each
3- You can use pipeline with stages.
@@Mukeshotwani
Thanks. Can you please provide shell/batch command for one client for reference as u mentioned first way
Thanks
Welcome