What Is the Difference Between Scripted and Declarative Pipeline

  Рет қаралды 19,417

CloudBeesTV

CloudBeesTV

Күн бұрын

Пікірлер: 17
@TeenaKohli
@TeenaKohli Жыл бұрын
Thank you for giving a quick tip on differences
@simpli-learn
@simpli-learn Күн бұрын
Thanks for sharing
@GAYE-x4e
@GAYE-x4e 2 ай бұрын
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!
@maddin5000
@maddin5000 2 ай бұрын
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.
@candyxoxo28
@candyxoxo28 4 ай бұрын
For scripted pipeline, how do you declare a particular agent ?
@SV-tc8cu
@SV-tc8cu 2 жыл бұрын
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
@Beautifull-day
@Beautifull-day Жыл бұрын
Very helpful thank you
@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
@sunils2111
@sunils2111 7 ай бұрын
nicely explained
@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 Жыл бұрын
then simply remove that stage script temporarily or comment it
@karthikreddy7640
@karthikreddy7640 10 ай бұрын
You can use a flag variable and wrap the code under the if (flag) {}.
@deathcoder
@deathcoder 2 жыл бұрын
is that the only difference?
@erics8362
@erics8362 2 жыл бұрын
Is this the only difference?
@oleksiihead
@oleksiihead 2 жыл бұрын
here you can find a couple additional differences - kzbin.info/www/bejne/e5rCf55nadulq6c
@abdennajifiras1975
@abdennajifiras1975 4 ай бұрын
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
How to Build and Deploy a React Application Using Jenkins
4:47
CloudBeesTV
Рет қаралды 16 М.
What Is The Difference Between Freestyle and Pipeline in Jenkins
9:12
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 1,3 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 54 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 44 МЛН
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 14 МЛН
Jenkins Pipeline Tutorial: Declarative Pipeline vs Scripted Pipeline
12:41
Jenkins Multibranch Pipeline With Git Tutorial
29:54
CloudBeesTV
Рет қаралды 84 М.
Using Conditionals in Jenkins Declarative Pipeline
10:13
CloudBeesTV
Рет қаралды 8 М.
Getting Started With Shared Libraries in Jenkins
23:23
CloudBeesTV
Рет қаралды 82 М.
Using Resource Files From a Jenkins Shared Library
13:58
CloudBeesTV
Рет қаралды 31 М.
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
What Is an Input in Jenkins?
12:35
CloudBeesTV
Рет қаралды 12 М.
How to Use Kubernetes Pods As Jenkins Agents
25:15
CloudBeesTV
Рет қаралды 58 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 1,3 МЛН