Rubbarollu Posted February 15, 2023 Report Posted February 15, 2023 Help needed Any courses available online on how to create a scripted pipeline using shared libraries Did not find any online or udemy or pluralsight Quote
Spartan Posted February 15, 2023 Report Posted February 15, 2023 its easy m,an...Cloudbees vade tutotrial undi.. Quote
ramudu Posted February 15, 2023 Report Posted February 15, 2023 6 minutes ago, Rubbarollu said: Help needed Any courses available online on how to create a scripted pipeline using shared libraries Did not find any online or udemy or pluralsight clear documentation undi kadha bro - https://www.jenkins.io/doc/book/pipeline/shared-libraries/ Quote
Rubbarollu Posted February 15, 2023 Author Report Posted February 15, 2023 @ramudu @Spartan Bro's this is just the basics. We have a 10 to 15 Java and Nodejs apps for which we would like to create a scripted shared library and call it through Jenkins file But need help to understand on how to create the groovy scripts in Vars and methods/functions in src directory for maven projects and npm projects when Jenkins calls it looks for the groovy script in Vars subdirectory, How do we write steps in Vars/groovy.script I did not find any videos on how we can we create a groovy script for Java/Node js apps All the videos are for hello world Quote
Spartan Posted February 15, 2023 Report Posted February 15, 2023 13 minutes ago, Rubbarollu said: @ramudu @Spartan Bro's this is just the basics. We have a 10 to 15 Java and Nodejs apps for which we would like to create a scripted shared library and call it through Jenkins file But need help to understand on how to create the groovy scripts in Vars and methods/functions in src directory for maven projects and npm projects when Jenkins calls it looks for the groovy script in Vars subdirectory, How do we write steps in Vars/groovy.script I did not find any videos on how we can we create a groovy script for Java/Node js apps All the videos are for hello world second tutorial lo explain chesadu, how you can write that anedi.. its easy once you get going. we are maintining almost 150+ pipelines with single custom library neeku reference ga..: https://github.com/mkobit/jenkins-pipeline-shared-libraries-gradle-plugin Quote
Rubbarollu Posted February 15, 2023 Author Report Posted February 15, 2023 We want to keep build options.yaml file in code repo along with Jenkins file which weill @referring t o the shared library after this step, we want to read the build options.yaml and from there we want to write the groovy script in vars Also based on the buildTech mentioned in the build options file we want to use that particular groovy like if it is maven then use maven if it is nodejs then use nodejs.groovy Problem antha ikkadey vostundi bro, e script ala rayali how do i do it also when we run the mvn command it needs to have the build number from jenkins ivvi anni rayali antey starting point dorakatla Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.