What Is the Difference Between Scripted and Declarative Pipeline

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

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

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

    Thank you for giving a quick tip on differences

  • @maddin5000
    @maddin5000 7 วันที่ผ่านมา

    I was always wondering what the differences between both types are, and when I have to use which. I thought there are differences of commands that I can use. But if this is the only difference, then I don't need to worry anymore since they seem to be almost the same.

  • @sunils2111
    @sunils2111 5 หลายเดือนก่อน

    nicely explained

  • @SV-tc8cu
    @SV-tc8cu ปีที่แล้ว +1

    Great video however the title is slightly confusing. This is just a one specific difference. Would be great to show examples where scripted pipeline should be used instead of declarative one

  • @GAYE-x4e
    @GAYE-x4e วันที่ผ่านมา

    Hello everyone,
    I'm currently working with scripted (non-declarative) Jenkins pipelines, and I'm looking to implement a condition similar to the when directive found in declarative pipelines.
    I want to be able to conditionally execute certain stages based on specific variables or conditions. I'm particularly interested in having stages appear greyed out (indicating they were skipped) using a declarative-like method. Does anyone know the equivalent of when or a similar approach for handling this in a scripted pipeline?
    Thank you in advance for your help!

  • @Beautifull-day
    @Beautifull-day 10 หลายเดือนก่อน

    Very helpful thank you

  • @candyxoxo28
    @candyxoxo28 2 หลายเดือนก่อน

    For scripted pipeline, how do you declare a particular agent ?

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

    is that the only difference?

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

    watching the video how did you create 1 pipeline by reading 2 jenkinsfiles in 2 different jobs?

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

      I understand... you created a directory and inside the 2 jobs calling them 01-basic/Jenkinsfile-scripted and 01-basic/Jenkinsfile-declarative

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

    Hi, what if we need to skip a middle stage in the declarative pipeline and run the other two stages, any solutions?

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

      then simply remove that stage script temporarily or comment it

    • @karthikreddy7640
      @karthikreddy7640 8 หลายเดือนก่อน

      You can use a flag variable and wrap the code under the if (flag) {}.

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

    Is this the only difference?

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

      here you can find a couple additional differences - th-cam.com/video/Ei_Nk14vruE/w-d-xo.html

  • @abdennajifiras1975
    @abdennajifiras1975 2 หลายเดือนก่อน

    o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath solitio nfor this errors
    when i systemctl start jenkins idont get answer and jenkins doesnt works