How To Run Jenkins Job Periodically | Run Jenkins Job Every 5 Minutes |2 hours | Poll SCM In Jenkins

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 28

  • @piyushmathpal4244
    @piyushmathpal4244 3 ปีที่แล้ว +1

    Thank you so much mukesh for creating this jenkins playlist.
    This is what was required

  • @shilpashravge8083
    @shilpashravge8083 3 ปีที่แล้ว

    Good explanation. Thanks for the efforts !!👍

  • @booksagsm
    @booksagsm 3 ปีที่แล้ว +1

    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

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      Hi Chitranshi, you can use Serenity framework. But still these scenarios you need to build. from your side.

  • @nikhithaa3202
    @nikhithaa3202 3 ปีที่แล้ว +2

    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?

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      I have video on this too, please check my playlist.

    • @nikhithaa3202
      @nikhithaa3202 3 ปีที่แล้ว +1

      Could you please tell which video?

    • @nikhithaa3202
      @nikhithaa3202 3 ปีที่แล้ว +1

      Could you please tell the video thumb nail...

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      @@nikhithaa3202 th-cam.com/video/_1EgoteXRoc/w-d-xo.html

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      You can use post build action in Jenkins to generate artifact

  • @thanhvinhnguyen4710
    @thanhvinhnguyen4710 3 ปีที่แล้ว +1

    nice video. Thank you very much!!!

  • @hstestingworld
    @hstestingworld 2 ปีที่แล้ว

    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
    @PradeepKumar-ld7vx ปีที่แล้ว +1

    Hi,
    how to schedule builds run every minit of every hour of every day
    Please tell me the.

    • @Mukeshotwani
      @Mukeshotwani  ปีที่แล้ว

      Hi please use below cron pattern for this * * * * *

    • @PradeepKumar-ld7vx
      @PradeepKumar-ld7vx ปีที่แล้ว

      @@Mukeshotwani thank you mukesh

    • @PradeepKumar-ld7vx
      @PradeepKumar-ld7vx ปีที่แล้ว +1

      Hi Mukesh
      There are dev,main,and release branches followed by development team, you need to setup build from all branches how?

    • @Mukeshotwani
      @Mukeshotwani  ปีที่แล้ว

      @@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
      }

    • @raghavendrasingh9567
      @raghavendrasingh9567 ปีที่แล้ว

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

  • @ShubhamSharma-ri7rk
    @ShubhamSharma-ri7rk 2 ปีที่แล้ว

    Hi Mukesh,
    will build periodically work ?,If my laptop is switch off .

  • @chandrasekar5781
    @chandrasekar5781 ปีที่แล้ว

    OSM explanation

  • @routrahul14
    @routrahul14 3 ปีที่แล้ว +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  3 ปีที่แล้ว

      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.

    • @routrahul14
      @routrahul14 3 ปีที่แล้ว

      @@Mukeshotwani
      Thanks. Can you please provide shell/batch command for one client for reference as u mentioned first way

  • @Bhagavadgitagyan
    @Bhagavadgitagyan ปีที่แล้ว +1

    Thanks