Jenkinsfile Beginner Tutorial 3 | Jenkins Pipeline | How to clone a git repo using Jenkinsfile |

Jenkinsfile Beginner Tutorial 3 | Jenkins Pipeline | How to clone a git repo using Jenkinsfile |

Automation Step by Step

3 года назад

37,192 Просмотров

All Free courses - https://automationstepbystep.com/
Step 1 : Create a new job or use existing job (type : Pipeline)
Step 2 : Create a repository on GitHub/BitBucket
Step 3 : Under Jenkins job > Pipeline section > Definition > Pipeline script
Step 4 : From dropdown select a sample HelloWorld examples
Step 5 : Click Pipeline syntax > Sample Step > git: Git
Step 6 : Provide repository url, branch, credentials > Generate Pipeline Script
Step 7 : Copy the generated script and add in the Hello World pipeline script as a new stage
Step 8 : Save & Run

Stories by Raghav - https://automationstepbystep.com/stories/
My Udemy Courses - https://automationstepbystep.com/udemy-discounts/

Join Automation Step By Step channel: https://www.youtube.com/automationstepbystep/join

Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you

You can support my mission for education by sharing this knowledge and helping as many people as you can

If my work has helped you, consider helping any animal near you, in any way you can.

________ ONLINE COURSES TO LEARN ________
https://automationstepbystep.com/online-courses/

GitHub - https://github.com/Raghav-Pal/
Udemy - https://www.udemy.com/user/raghav-pal-3/
Training by Raghav at your venue - [email protected]
Training schedule - https://automationstepbystep.com/trainings-2/

------------ UI TESTING ------------
Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework with RIDE- https://bit.ly/2Px6Ue9
Robot Framework with Eclipse - http://bit.ly/2N8DZxb
Protractor - http://bit.ly/2KtqVkU
TestProject - http://bit.ly/2DRNJYE

------------ API TESTING ------------
Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
General - https://bit.ly/2PYdwmV
Katalon Studio API Testing - https://bit.ly/2BwuCTN

------------ MOBILE TESTING ------------
Appium - https://bit.ly/2ZHFSGX
Mobile Playlist - https://bit.ly/2PxpeUv

------------ CI | CD | DEVOPS ------------
Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips & Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx
Kubernetes - http://bit.ly/2MJIlMK

-------------VIRTUALISATION-------------
Virtualization on windows - http://bit.ly/2SItIL9
------------ VERSION CONTROL SYSTEM ------------
Git & GitHub - https://bit.ly/2Q1pagY
GitLab - http://bit.ly/2kQPGyQ

------------ PERFORMANCE TESTING ------------
JMeter Beginner - https://bit.ly/2oBbtIU
JMeter Intermediate - https://bit.ly/2oziNVB
JMeter Advanced - https://bit.ly/2Q22Y6a
JMeter Tips & Tricks - https://bit.ly/2NOfWD2
Performance Testing - https://bit.ly/2wEXbLS

------------ PROGRAMMING ------------
Java Beginners - https://bit.ly/2PVUcXs
Java Tips & Tricks - https://bit.ly/2CdcDnJ
GROOVY - https://bit.ly/2FvWV5C
JAVASCRIPT - http://bit.ly/2KJDZ8o
PYTHON - http://bit.ly/2Z4iRye

------------ IDE ------------
Visual Studio Code - https://bit.ly/2V15yvt

------------ BUILD TOOLS ------------
Maven - https://bit.ly/2NJdDRS
Gradle - http://bit.ly/30l3h1B

------------ OTHERS ------------
Redis- https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools & Tips - https://bit.ly/2oBfwoR
QnA Friday- https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO

Ask Raghav - https://bit.ly/2CoJGWf
Interviews - https://bit.ly/2NIPPxk
All Playlists - https://bit.ly/2LSiezA

----------- Connect with Raghav ------------
Website - https://automationstepbystep.com/
LifeCharger - http://lifecharger.org/
Udemy Courses - https://www.udemy.com/user/raghav-pal-3/
Facebook - https://www.facebook.com/automationstepbystep
Twitter - https://twitter.com/LearnWithRaghav
Youtube - http://youtube.com/automationstepbystep

Never Stop Learning
Raghav

Тэги:

#how_to_create_jenkinsfile #How_to_clone_a_git_repo_using_Jenkinsfile #how_to_write_jenkinsfile
Ссылки и html тэги не поддерживаются


Комментарии:

360- Jatin
360- Jatin - 09.06.2023 21:57

Is this playlist complete. Will this be enough to learn jenkins as im going to be joining a team which uses jenkins

Ответить
Archana Muthukrishnan
Archana Muthukrishnan - 26.12.2022 10:47

Hello Sir
I am using Cucumber plugin to generate Cucumber JVM reports.i am able to view generated report thorugh Jenkins .I need to email it as attachments.I am using below code to do ..but I am not able to find .html report to email that.. under target seperate folder is not getting generated where these reports will be stored in Jenkins ...it works fine in local...
{
emailext body:"test ",
attachmentsPatters:"*/ html"
}

This should search for all available html throughout the workspace right ?...why am I not able to get my generated html report?

Ответить
Archana Muthukrishnan
Archana Muthukrishnan - 18.12.2022 11:06

Hello Sir
I have implemented Rerun concept in Cucumber Jenkins.
1)my runner file name is Runner 2)rerun file name Is SecondRunner
When there is any failed TCs failed scenarios will be stored under target/ failed scenarios.txt file

For some reasons , when I run thorugh jenkins ( works fine in local)
My SecondRunner file gets executed first and throwing error like "Initialization Error" ..then Runner is executed.

In POM xml I gave Runner file first then SecondRunner file
Can you suggest how to make my Runner file to be executed first through Jenkin??

Ответить
Mini_Tour
Mini_Tour - 11.11.2022 19:05

Can you do a vedio about How to solve cicd pipelines error.(common error)

Ответить
Or Spiegel
Or Spiegel - 03.11.2022 13:05

Thank you for the clean explanations!

Ответить
Shivam Anand
Shivam Anand - 01.11.2022 09:57

Requesting a new video in this playlist where
1. GitOps: pushing code to Github, webhook invokes pipeline
2. you work with multiple git branches
3. you can use if else if in a shell script
4. Build something
5 Generate an artifact and store it somewhere
6. deploy the artifact somewhere
I think this sums up an average scenario when using Jenkins

Ответить
grimonce
grimonce - 27.07.2022 14:24

Thank you, most helpful.

Ответить
Tohati Stefan
Tohati Stefan - 15.06.2022 13:02

Thank you for your presentation, it was a real help :d.

Ответить
Business
Business - 15.06.2022 01:18

Amazing instructions. I could not find anything like this in the documentations.

Ответить
Srinath Mohan
Srinath Mohan - 10.06.2022 17:58

Man you are awesome

Ответить
Perumal Mayandi
Perumal Mayandi - 31.03.2022 06:30

I have jenkinsfile and I'm getting some errors , is it possible to help me as a paid service, hourly basis

Ответить
suchi shah
suchi shah - 03.02.2022 14:33

Hi I have completed your jenkins Beginner Tutorial series .It is very helpful .Thank you for such nice sessions.

Ответить
Jyoti
Jyoti - 31.01.2022 03:43

Thanks for the sessions.Its awesome. Also going through all other playlists.Keep up the good work 👍

Ответить
Siva Sankar Chandu
Siva Sankar Chandu - 19.12.2021 18:04

Hai raghav, I have an error while cloning different branch except main/master

In declarative pipeline,

Git branch : 'custom_branchname' not working

Is there any option to clone custom pipeline do that .?

Thank you in advance 😊

Ответить
ajay D
ajay D - 29.11.2021 11:25

can i know which purpose we need clone a git repo in jenkins pls tell me

Ответить
Anmol Rai
Anmol Rai - 22.10.2021 03:46

Raghav I am using mac and I installed jenkins through brew and I am not able to do basic configuration as I am not able to find jenkins_home folder and all ...so I can't configure tomcat too ...as . Jenkins folder is hidden and through command line it is not happening with me

Please help with a video of jenkins with brew installation and setting home variables and how to configure java and git and maven into jenkins

Ответить
AKSHAY WARE
AKSHAY WARE - 28.09.2021 19:51

Thanks raghav for wonderful tutorial. Your videos give me confidence and clear basic for new tools. This confidance help to explore more inside it.

Ответить
Pravallika V
Pravallika V - 26.09.2021 16:29

hi raghav thank you for your sessions it is very much helpful for me,i have question or doubt i passed out in 2010 due to some family problem i am at home only these many years but my heart is telling to work,know i have chance to work ,i am learning devops tools,in what way i want to apply,can i get job?.....its a big question for me can u please clear....its mean a lot for me.

Ответить
Hansaka Biyon
Hansaka Biyon - 23.09.2021 11:37

I've watched the whole lesson series. Thanks man keep it up ❤️❤️

Ответить
phoenix
phoenix - 05.09.2021 20:20

Thanks for this playlist Raghav, request you to please include some remaining topic as Shared Library etc.

Ответить
Shubham Diwane
Shubham Diwane - 05.09.2021 15:41

Please create new videos for the same topic sir

Ответить
Manjeet Kumar
Manjeet Kumar - 31.08.2021 21:18

You know your contents are valuable, when an organization recommends your videos to its newly hired graduates. Thank you for all these.

Ответить
Gani writings
Gani writings - 26.08.2021 16:49

Hi ,I want to trigger from GitHub repo to Jenkins with out webhook
How it is possible?

Ответить
Pratik Somwanshi
Pratik Somwanshi - 10.08.2021 08:25

Thanks. It helped!

Ответить
Rajiv Lokare
Rajiv Lokare - 05.08.2021 07:08

Thanks for wonderful knowledge sessions, Raghav!!!

Ответить
Rajiv Lokare
Rajiv Lokare - 05.08.2021 07:07

Thanks for wonderful knowledge sessions, Raghav!!!

Ответить
John Prajeeth
John Prajeeth - 19.07.2021 21:59

Just done with the playlist coming from bamboo. Thank you Raghav. God Bless. I'll take Docker and Kubernetes next.

Ответить
Ragu
Ragu - 13.07.2021 20:55

Why you are not continue? It's was awesome

Ответить
rahul gupta
rahul gupta - 24.05.2021 01:35

Gob bless you for creating such a wonderful series!

Ответить
Prashanth
Prashanth - 11.04.2021 15:23

Hi Raghav, can you please make tutorial on SonarQube? Thanks

Ответить
Rohit Raikar
Rohit Raikar - 31.01.2021 06:53

Sir I have an error can u please help me out

Ответить
Jorge Q. Torres
Jorge Q. Torres - 28.01.2021 17:49

Keep them coming Raghav, this jenkinsfile lessons were a must and you are doing it great, thanks for sharing with us :)

Ответить
Shashank Choubey
Shashank Choubey - 22.01.2021 19:59

Thanks Raghav for the session

Ответить
Ganesh S
Ganesh S - 22.01.2021 10:19

Hi Raghav, can you please also make a video course on Karate API test tool

Ответить
Saranya Raja
Saranya Raja - 21.01.2021 20:07

Hi, I need a help. I'm unable to install git and pipeline plugin getting error like Indirectly dependent plugins

Ответить