Jenkins Job vs Jenkins Pipeline

15,951

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 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.

Share:
15,951
NarendraR
Author by

NarendraR

I'm an Automation Engineer working with Selenium using Java. I'm always passionate about new Learning and problem solving. Always seeks time to be a helpful hand over here Get in touch with me on LinkedIn

Updated on September 18, 2022

Comments

  • NarendraR
    NarendraR over 1 year

    BACKGROUND : We have one Selenium automation project which is shared in BitBucket repository. Project is maven project. we have 10 testng.xml files for all modules

    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.

  • Olivia Stork
    Olivia Stork almost 6 years
    Also note that you can create a Jenkins Pipeline and choose Git as where you want to store the source code, then use the Pipeline GUI to create the Pipeline. The Jenkinsfile will be added to your git repo, and you can push changes to that file directly. What I'm getting at is that you won't be forever committed to using the GUI with Pipeline.