principleMinor
Jenkins Job vs Jenkins Pipeline
Viewed 0 times
jenkinsjobpipeline
Problem
BACKGROUND : We have one Selenium automation project which is shared in BitBucket repository. Project is maven project. we have 10
OVERVIEW: Now we want to trigger the automation build once any changes committed in AUT application code.
Also want to trigger the build for failed testcase in Post Step as well, So we will be sure with actual test failure.
Once this execution done then it should send the email with report attachment.
PROBLEM: We are unable to decide What would be feasible Jenkins Job or Jenkins Pipeline ?
TRIALS : I have idea regarding Jenkins Job like setting up maven job and configuring post build trigger, email configuration but not clear enough as a layman.
testng.xml files for all modulesOVERVIEW: Now we want to trigger the automation build once any changes committed in AUT application code.
Also want to trigger the build for failed testcase in Post Step as well, So we will be sure with actual test failure.
Once this execution done then it should send the email with report attachment.
PROBLEM: We are unable to decide What would be feasible Jenkins Job or Jenkins Pipeline ?
TRIALS : I have idea regarding Jenkins Job like setting up maven job and configuring post build trigger, email configuration but not clear enough as a layman.
Solution
Jenkins Job and Jenkins Pipeline are basically the same. In a pipeline you define the steps of your job as groovy code (actually it is CPS https://github.com/jenkinsci/workflow-cps-plugin, but that should in general just be a custom groovy interpreter).
The point, that is making pipelines "better", form my perspective, is, that you can add those in so-called
So I would recommend: Take the time to learn how these Jenkins pipelines work and use those. But if you do not want or if you do not have the time, then doing it with plain-old Jenkins jobs is fine as well.
The point, that is making pipelines "better", form my perspective, is, that you can add those in so-called
Jenkinsfiles alongside your code. So you have your build job versionized alongside your application code.So I would recommend: Take the time to learn how these Jenkins pipelines work and use those. But if you do not want or if you do not have the time, then doing it with plain-old Jenkins jobs is fine as well.
Context
StackExchange DevOps Q#4611, answer score: 6
Revisions (0)
No revisions yet.