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...
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)
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.
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!
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
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.
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
I was struggling to work this concept on my system for hours 😃 . He resolved my issues is just 23 minutes. Thank you sir
I was breaking my head for hours to make it work the library. Thank you @Darin. Lifesaver :)
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.
Thanks! Perfect simple example, just what I needed
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...
Thanks from RUS, very good quality material!
This is gamechanger for keeping pipelines DRY, thanks! :)
I was banging my head & searching for that underscore ‘_’ meaning. And here I get it. Thank You 😊
What does that mean?
Very useful, thx a lot. Clear explaination, all important details commented, nice!
Darin, thanks a lot for your github repositories, there are very usefull. Thank you also for knowledges on youtube!
Really Superb. Nice video for beginners !
Amazing explanation - so helpful and summarized, thanks !
spectacular presentation, very well presented
Thanks a lot. Very clear and helpful
Fantastic.. This is what i wanted to understand.. God Bless you.
Excellent explanation. Very helpful.
Nice video. I like the Map param example vs the positional params
thanks , great video you help to understand the concept and implemented in my work
Very well explained sir, could you make another video more complex, with src, var and classes ? Thanks again !
Crystal clear instructions. Thanks.
Thank You! It's what I was searching for. Great tutorial.
Great video, very informative thanks
Really helpful, thank you!
@darin Im loving your videos. they are just awesome....tough concepts explained in an easy way
very clean and concise
Amazing explanation.
It's amazing. Thank you very much!
Thank you for this awesome video
Absolutely great!!!
It was a very insightful video. 👌👍
Thank you very much Sir, Good and clear explanation😊👌👍
Well explained, Thank you Sir!
I think the "master" branch is now called "main". I was able to map the repository this way :)
thank you so much for this video !!
Wonderful explanation! Thank you very much. :)
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)
If someone else was checking step-by-step and got revision invalid error. Change default version from "master" to "main" to resolve revision problem
Absolutely great 👍
great video. Thank you
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.
thank you for the amazing video
This was great
Thank you very much!!
Great tutorial!
could you please do a video on jenkins and netsparker integration
解决了 No such library resource xxx could be found. 非常感谢
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!
getting message ‘Jenkins’ doesn’t have label ‘linux’ , can somebody please suggest
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
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.
Sir, in your taskbar it says it's Wednesday not Thursday. :-P
Superr
thank you
good video
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