Getting Started With Shared Libraries in Jenkins

  Рет қаралды 76,471

CloudBeesTV

CloudBeesTV

Күн бұрын

Need help with your Jenkins questions?
Visit community.jenkins.io/c/using-...
Timecodes ⏱:
0:00 Intro
0:21 Overview of Shared Libraries
1:15 Review of Shared Libraries documentation
4:52 Configuring a global shared library in your controller
10:10 Create a basic pipeline job
12:00 Introducing a simple custom step
16:19 Modifying the custom step
17:45 Adding parameters to the custom step
19:50 Changing from positional parameters to a Map
22:33 Conclusion and Wrapup
Information referenced in this video:
Extending with Shared Libraries
www.jenkins.io/doc/book/pipel...
Darin's example shared library repository
github.com/darinpope/github-a...
CloudBees on Twitter:
/ cloudbees
Darin on Twitter:
/ darinpope

Пікірлер: 54
@dannyhd8301
@dannyhd8301 2 ай бұрын
Absolutely great!!!
@quyreansoulsealer4002
@quyreansoulsealer4002 2 жыл бұрын
Thanks! Perfect simple example, just what I needed
@royedri6519
@royedri6519 2 жыл бұрын
Amazing explanation - so helpful and summarized, thanks !
@satheeshcharles
@satheeshcharles 3 жыл бұрын
I was breaking my head for hours to make it work the library. Thank you @Darin. Lifesaver :)
@trido3815
@trido3815 3 жыл бұрын
Crystal clear instructions. Thanks.
@FilipHokes
@FilipHokes 2 жыл бұрын
Thank You! It's what I was searching for. Great tutorial.
@ZacharyBetz
@ZacharyBetz 2 жыл бұрын
Nice video. I like the Map param example vs the positional params
@Prablu91
@Prablu91 3 жыл бұрын
Thank you so much Sir. I was searching this kind of tutorial to implement in my project and finally I found it. It's really helpful and understanding...
@Nodorgrom
@Nodorgrom 2 жыл бұрын
Darin, thanks a lot for your github repositories, there are very usefull. Thank you also for knowledges on youtube!
@radostinpaskalev8213
@radostinpaskalev8213 3 жыл бұрын
spectacular presentation, very well presented
@hydrock9738
@hydrock9738 3 жыл бұрын
It's amazing. Thank you very much!
@marcpoinot9166
@marcpoinot9166 2 жыл бұрын
Very useful, thx a lot. Clear explaination, all important details commented, nice!
@sumitsharma-mg3el
@sumitsharma-mg3el 3 жыл бұрын
Well explained, Thank you Sir!
@raychung1156
@raychung1156 2 жыл бұрын
very clean and concise
@mithuntechtraining
@mithuntechtraining Жыл бұрын
@darin Im loving your videos. they are just awesome....tough concepts explained in an easy way
@yevhen5388
@yevhen5388 Жыл бұрын
Thanks a lot. Very clear and helpful
@siroussayahi7972
@siroussayahi7972 3 күн бұрын
Absolutely great 👍
@tilakdhanunjaya
@tilakdhanunjaya 3 жыл бұрын
Thank you very much Sir, Good and clear explanation😊👌👍
@DunSety
@DunSety 2 жыл бұрын
Thanks from RUS, very good quality material!
@RobertKleinKromhof
@RobertKleinKromhof Жыл бұрын
Explained well and such an amazing function. I found it was explained so well that I could even follow it perfectly at 1.5x speed.
@totalcomplexity
@totalcomplexity Жыл бұрын
This is gamechanger for keeping pipelines DRY, thanks! :)
@drakezen
@drakezen 2 жыл бұрын
Amazing explanation.
@junglemike4
@junglemike4 8 ай бұрын
Excellent explanation. Very helpful.
@krishnaprasad5503
@krishnaprasad5503 Жыл бұрын
Really Superb. Nice video for beginners !
@gorettideleon5256
@gorettideleon5256 Жыл бұрын
Really helpful, thank you!
@ghauri001
@ghauri001 2 жыл бұрын
Thank you for this awesome video
@ravikumar-su5py
@ravikumar-su5py 2 жыл бұрын
Fantastic.. This is what i wanted to understand.. God Bless you.
@abdullahalmosalami2373
@abdullahalmosalami2373 Жыл бұрын
Wonderful explanation! Thank you very much. :)
@saragalal5413
@saragalal5413 20 күн бұрын
thanks , great video you help to understand the concept and implemented in my work
@themrjeevesh
@themrjeevesh 3 жыл бұрын
It was a very insightful video. 👌👍
@mohankumar9511
@mohankumar9511 2 жыл бұрын
I was struggling to work this concept on my system for hours 😃 . He resolved my issues is just 23 minutes. Thank you sir
@milindbhande8859
@milindbhande8859 2 жыл бұрын
thank you so much for this video !!
@Dziki8332
@Dziki8332 11 ай бұрын
great video. Thank you
@alexandersemigrodskikh8400
@alexandersemigrodskikh8400 2 жыл бұрын
Great tutorial!
@bearaujus
@bearaujus 5 ай бұрын
Thank you very much!!
@anhquocnguyen1578
@anhquocnguyen1578 2 жыл бұрын
thank you for the amazing video
@kojibello7452
@kojibello7452 2 жыл бұрын
This was great
@bibhuti0001
@bibhuti0001 Жыл бұрын
I was banging my head & searching for that underscore ‘_’ meaning. And here I get it. Thank You 😊
@rahulsingh-iq4gd
@rahulsingh-iq4gd 6 ай бұрын
What does that mean?
@eclipsetutorialvideo
@eclipsetutorialvideo 2 жыл бұрын
Very well explained sir, could you make another video more complex, with src, var and classes ? Thanks again !
@mihai6564
@mihai6564 Жыл бұрын
good video
@luisher6698
@luisher6698 Жыл бұрын
Superr
@idimidi4052
@idimidi4052 Жыл бұрын
I think the "master" branch is now called "main". I was able to map the repository this way :)
@lichengzhang1836
@lichengzhang1836 2 жыл бұрын
解决了 No such library resource xxx could be found. 非常感谢
@jean-pierrefouche1827
@jean-pierrefouche1827 2 жыл бұрын
Thanks for this great video! When I configure Shared Libraries in "Configure System", it appears to be scanning all of my repos and then changing my configured repo and default version to the last item it finds! Very annoying - do you have any idea what's going on there? (I am using an SSH key with a lot of permissions granted to it)
@bannu7135
@bannu7135 2 жыл бұрын
could you please do a video on jenkins and netsparker integration
@HakanaiVR
@HakanaiVR Жыл бұрын
I’ve started wondering how to use languages other than groovy for this. We’re constantly experiencing issues with groovy and wish that Jenkins would look at something like Kotlin for pipeline library code.
@rubbercable
@rubbercable 2 жыл бұрын
When I first saw shared libraries I was still using bash scripting; it broke me. I had to teach myself Java - detours on django, pytorch, golang c#, c++ to get to Groovy (yeah it was the scenic route) . I'm back for a rematch.
@gsantosoliver
@gsantosoliver 2 жыл бұрын
I used to have @Library("shared-library@my-branch") _ But now I need to define the branch dynamically, so I am using library ("shared-library@$BRANCH_NAME") But now Jenkins is not able to find my Classes. Here is the error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 145: unable to resolve class Artifactory @ line 145, column 30. artifactoryObj = new Artifactory(script:this, repoName:my_ARTIFACTORY_DEV_FW_REPO, repoHost:my_ARTIFACTORY_LOC, repoCredentialID:my_ARTIFACTORY_CREDENTIALS) The Artifactory Class is part of the package com.ibm.cio.dcs.ci_cd in my shared library. How can I define, at the library load time, the packages to import? I would now like to update my code to add full qualified classes paths... Thanks!
@sundeepgarg3502
@sundeepgarg3502 3 жыл бұрын
getting message ‘Jenkins’ doesn’t have label ‘linux’ , can somebody please suggest
@off_road_monk
@off_road_monk 3 жыл бұрын
agent is just like another machine which you associate with Jenkins. So suppose I configure 2 slaves on Jenkins -> 1. windows 2. linux Now I have the flexibility run a specific job on windows machine, and maybe some other job on linux machine. So agent { lable "linux" }, is our way of telling jenkins to use linux machine to build this job. If you have not configured any slaves then go ahead and skip this step altogether
@sainathreddybonthu7034
@sainathreddybonthu7034 Жыл бұрын
How to render a array in html file
@danrooke1199
@danrooke1199 Жыл бұрын
Sir, in your taskbar it says it's Wednesday not Thursday. :-P
@AmitKumar-im1pf
@AmitKumar-im1pf 2 жыл бұрын
I only have created helloWorld.groovy in my vars directory and configured the shared-library. Getting below error + hello world /var/lib/jenkins/workspace/library-test-pipeline@tmp/durable-4418e25e/script.sh: 1: hello: not found define helloWorld.groovy def call() { sh "echo Hello World." } But once the repo which you shared I am updating system configuration shared-library it worked perfectly fine. Can you help where I can fix this issue. Appreciate this video is very interesting and clarity for this topic
🔴 What's New in Jenkins LTS 2.263.2
40:28
CloudBeesTV
Рет қаралды 907
Jenkins Multibranch Pipeline With Git Tutorial
29:54
CloudBeesTV
Рет қаралды 78 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 113 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 29 МЛН
Using Resource Files From a Jenkins Shared Library
13:58
CloudBeesTV
Рет қаралды 29 М.
How to Integrate SonarQube With Jenkins
12:42
CloudBeesTV
Рет қаралды 55 М.
How Do You Run Jenkins Steps in Parallel?
14:57
CloudBeesTV
Рет қаралды 13 М.
What Is currentBuild in Jenkins?
17:24
CloudBeesTV
Рет қаралды 21 М.
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 95 М.
Myself ruined 15 LPA DevOps last round 🤮🤮🤮
18:04
Ashiq Ummathoor
Рет қаралды 207 М.
How to Create an Agent Node in Jenkins
23:57
CloudBeesTV
Рет қаралды 91 М.
How to Add Git Credentials in Jenkins
12:13
CloudBeesTV
Рет қаралды 50 М.
Avoid These 5 Jenkins Pipeline Mistakes To Make Your Life Easier! 🔥
17:46
Опять съемные крышки в смартфонах? #cmf
0:50
😱Хакер взломал зашифрованный ноутбук.
0:54
Последний Оплот Безопасности
Рет қаралды 664 М.
Как слушать музыку с помощью чека?
0:36
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 1,7 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 2,2 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 3,1 МЛН