GitLab Beginner Tutorial 7 | GitLab CI/CD Getting Started
ฝัง
- เผยแพร่เมื่อ 8 มิ.ย. 2024
- all FREE Courses - automationstepbystep.com/
Today we will learn
1. What is GitLab CI/CD
2. Create .gitlab-ci.yml
3. Run CI/CD pipeline
GitLab CI is an open source CI service included with GitLab
Since ver 8.0
GitLab CI is an open source Continuous Integration service included with GitLab
Only project maintainers & Admin can access the Settings
Step 1: Add .gitlab-ci.yml in the root folder of your project/repo
- GitLab CI/CD pipeline are configured using YAML file called .gitlab-ci.yml in each project
- .gitlab-ci.yml file defines the structure and order of the pipeline & determines
-
Mac - textEdit, textWrangler
Windows - Notepad, notepad++
demo_job_1:
tags:
- ci
script:
- echo Hello World
www.yamllint.com/
Step 2: Commit and push file to gitlab repo
Step 3: Create GitLab runner for the project
Video - • GitLab Beginner Tutori...
Step 4: Start the runner
Step 5: Make any change in the project > commit > push
#GitLabTutorials
References:
gitlab.com/help/ci/quick_star...
docs.gitlab.com/ee/ci/
docs.gitlab.com/ee/ci/yaml/
docs.gitlab.com/ee/ci/yaml/
docs.gitlab.com/runner/instal...
GitHub - github.com/Raghav-Pal/
Udemy - www.udemy.com/user/raghav-pal-3/
Training by Raghav at your venue - raghav.qna@gmail.com
Training schedule - automationstepbystep.com/trai...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
Website - automationstepbystep.com/
Udemy Courses - www.udemy.com/user/raghav-pal-3/
TH-cam - / automationstepbystep
You can support my mission for education by sharing this knowledge and helping as many people as you can
Never Stop Learning
Raghav
I highly appreciate the whole series of GitLab Beginner Tutorial you provided! I have an exam tomorrow also tackling this topic and we didn't get any documents for it. This series was the perfect way get to know the application and it's basic features! Thank you! I only wish you would have made a video for GitLab issues and how they work aswell!
Glad it was helpful Charly
Thanks a ton Raghav for sharing your knowledge!
Your GitLab series are amazing and smooth to follow along. You have got a new subscriber!
Cheers and please keep the good work!!
This helped me so much, I'm studying Computer Science and this is one of our tasks now. At first it looked complex and unpleasent but you described it very well, thank you!
So happy to know this
Thank you!! I love that you showed all the steps in order with details!!
You're welcome Andreea
I really like your teaching style by doing everything steps by step!!! Kuddos and thanks a bunch
You're very welcome!
Great tutorial but you have to continue it!! Don’t leave us hanging. Merging to master, working on branches, common errors, deleting a branch, renaming etc
Will do. Thanks for liking Bogdan
Yes we need more videos for the same...
Waiting for it...
Thank you so much, well explained! appreciate your help a
lot :)
You're welcome Sabuhi
7:55 that is the point where u solved my problem. thanks you... :)
So happy to know this
I've watched some other tutorials and messed up. Atlast found a "PERFECT ONE" from basic. Thank you so much Raghav..
So happy and humbled to know this Kowsalya
Perfect tutorial
Thank you :)
You're welcome Petra
Excellent tutorial!
I couldn't really find anywhere a tutorial THIS good! Understood and worked as well! On point!
Thank you so much!
Subscribed as well, since you have other interesting tutorials as I see!
Glad and humbled to see this Angel
Thank you so much, very useful tutorial. I really appreciate your knowledge and services which you're giving to us.🙏🙏🙏.
So happy to hear this Prasanna
I completed your Jenkins and GitLab playlist.. you explain in simple manner so thank you Raghav for that..I try to hit like button for all your videos 👍
So nice of you Manali
One of the best playlists on youtube and even the best tutorial for understanding GitLab, it's explained beautifully. All the steps are in detail and made it very easy for a learner to understand from scratch. Mindblowing efforts as included both Mac & windows parallelly.Very short tutorial and saves a lot of time by covering everything. Very few experts like Raghav Pal Sir can make us explain in just 7 videos. There's a request for you at the end if you can explain topics of laravel framework with mini projects.Thank you.
I am so happy & humbled to see your message Sanjna, Thanks for watching. Do share your knowledge with everyone
Raghav - you are doing great job by explaining fundamentals. Appreciate your efforts !!!
Thanks Surinder
Thanks a lot! Videos helped to understand CI/CD techniques in GitLab.
Glad it was helpful!
Thank you so much for sharing this knowledge! :)
Most welcome
Thank you for the great tutorial !!!
You're welcome Leonia
great introductory to ci/cd concepts. thank you
You're welcome Trevor
This was awesome, thank you very much!! You arethe best Raghav!!
Thank you so much Andrei
Really nice video with the detailed explanation, able to perform my activities by going through your videos. Appreciate your knowledge sharing and thanks a lot.
Glad it was helpful Bala
Amazing ! you are an absolute Pro thank you so much for the knowledge you have shared
Most welcome Jai
Really very useful, happy to learn
Thank you so much for indetail step by step explanation
Wishing u lot of success
I always follow ur tutriols
You are most welcome Vidya Sagar
Thank you for creating wonderful videos. Your explaination is simply speechless . Request you to make videos on advanced gitlab/devops topics.
Sure Prashant, will do. Thanks for the message
Informative tutorial! Clear and precise.
Thank you for sharing.
Liked & subscribed.
Awesome, thank you Bijoy, can get all tutorials here - automationstepbystep.com/
Hi Raghav... All your courses are quick starters. it helps a lot. Thank you so much.
Most welcome Bala
Thanks Raghav. I have shared the same with my team. We are now migrating from GITHUB + TeamCity to GITLAB. I am very much sure they would love this.
Big Fan of yours.
Hi Atul, so happy to know this
Thank u so much Raghav, Gitlab tutorial is very simple and understandable :-)
You're welcome Ashwin
Excelente material, ¡muchas gracias!
Eres muy bienvenido
Very clear your explanation. Thank you.
You're welcome Guilherme
Very detailed and helpful tutorials. Thanks
Glad it was helpful Niyati
Excellent tutorial for beginners I'm in a better state of knowledge than I was 2 days ago thanks so much
Great to hear
Awesome Content Raghav.. perfect to start. Thanks.
You're welcome Yogesh
I appreciate your teaching very much. I learn a lot.
You are very welcome
Excellent tutorial for gitlab cicd beginners , Thank you Raghav!
Most welcome Elvis
thank you so much, this tutorial really helps
You're welcome Panji
Thank you sir. The best tutorial in TH-cam.
Please make tutorial for advanced, people need it =)
Sure I will. Thanks for watching
great series of tutorials!!!. Hats off to you!! .. I have learnt devops tools jenkins and gitlab using you tutorials..very very basic , step by step and easy to follow and understand . Can you pls make a video on how these tools are used in an enterprise setup. It may not be a hands on tutorial , but just to see different stages of the CI/CD pipeline and how its don in actual exterprise setup..Thank u so much for your effort!!!!
You're very welcome!
Very well explained, god bless you with everything you want in life.
Thanks a lot Gurminder
I really enjoyed this series, and it introduced me very well to the GitLab world, excellent work my friend, thank you very much. I hope you can do CI/CD with python projects in some of them. Greeting from Colombia
Glad you enjoyed it Victor, I will do these topics
Really simple tutorials for someone beginning with GitLab. Many thanks
Following above I have a question --- What if I have multiple projects and I want to run runner for a specific project at a time ??
Hi Chakresh, You can do that in the setup. This can help
docs.gitlab.com/ee/ci/runners/
Thanks Raghav for sharing knowledge, it is really informative
You're welcome Dhanun
more than an year and still your content is great...appreciate your efforts in sharing knowledge...Thnq Ragav
Most welcome Anil
Thanks a lot your way of explanation is great will practice and ask your questions
Always welcome Gopinath
Thanks Raghav! Note where we can see logs of job pipeline my job is always in running or pending state I had to cancel it always.
Hi Saeed, when you goto jobs section, you can see logs. I have shown that in the video
Very helpful. Thank you , need to know how selenium tests can be executed
Hi Suryakant, I will plan a session. Can check other tutorials here - automationstepbystep.com/
Raghav sir u have solved every problem whether it will be from Groovy or GitLab ur all videos are very helpful !!! keep uploading these videos
So nice of you Rohit
This session makes my job easy as We are using gitlab ci in the current environment....Thank you so much.
Most welcome Kiran
Nice way of sharing knowledge - easy to understand - Thanx man!
Glad it was helpful Sahithi
good walkthrough of the service!
Thanks Eele
Thank you so much,, it is useful course for beginner like me on GitLab and I start with you since tutorial 1, and I follow all steps and I don't face any problem and all function work with me very well except this tutorial exactly step number 4 start the runner whereas when I type "brew services start GitLab-Runner" the message is "'brew' is not recognized as an internal or external command,
operable program or batch file" my question what shall I do and why it is not recognized? thank you so much.
Hi, you will first need to get HomeBrew to run brew commands. Check there - brew.sh/
thank you very much passed one year but still useful information, great job brother!
Great to hear this
@@RaghavPal a simple request if you have some times, I would like to request gitlab-ci.yml details configuration scenario, anyway thank you very much ❣️
Excellent series, Thank you!
You're very welcome Nidhi
Good beginners tutorial, thanks.
You're welcome Shahar
Awesome and easy to follow, many thanks.
Glad it was helpful!
Thanks Raghav for all your knowledge sharing. Very helpful video series.
Most welcome Vipul
GREAT JOB ... THANKS for your Help
You're welcome Kam
I was seeking some best series but fortunately i got your series ... Thanks a lot ♥️
Glad to hear that Rushikesh
Nice and very basic!! Interesting. Kudos!!
Thanks for watching Rajesh
@@RaghavPal Could you please suggest me with this. I have a shell executor runner installed. Can I have docker and python pre-installed in this shell executor? Or shell executor comes as in empty terminal but not the instance where I can login and make some changes.
Hi Rajesh, If you are using any physical or virtual machine you can get docker, python etc installed
Thanks a million. Very helpful sessions indeed. Please make videos on other features of gitlab as well.
Thank you, I will Deepashree
just what I was looking for, will try this and subscribe thanks
Thanks for the sub Jesus
Great Videos. Thank you so much for this.
So nice of you Vishnuja
I do not understand. Runner is running locally? What if I have AWS EC2 instance and I want to deploy there?
Yes you can, and thats the use. Here just for demo I used a single system
Your explanation is very pleasant & understandble sir
Glad to hear that
great clear and concise explanation..thanks
Glad it was helpful Nancy
God bless u for that tutorials on gitlab
Thanks
Had a POC to run my local Test execution now running this in gitlab. Look forward to learning about ticks and tricks with any reporting tool remote servers.
sure
Continue with the hard work very simple explanation and resourcefulness.Wish you the best
Thanks a lot
This is amazing content. Thanks alot for your efforts Raghav. I have a question, is there anyway we can create pipelines with GitLab runners on Kubernetes cluster?
There should be, I have personally not tired this, will need to check some online examples
Very Thankful to you!
So nice of you
very informative Raghav...good luck
Thanks Anand
Hi Raghav, your videos are very helpful in setting up the gitlab repo. Can you also let me know how to integrate gitlab with checkmarx.
Thanks
I will plan for a session on this Sameer
Very informative and to the point.
Glad it was helpful Farah
Hi Raghav, these tutorials are great thanks for providing.
Can you please share a video related to Ansible how to write playbooks etc. That would help us a lot. Thanks in advance
I will do Ansible tutorial soon Nari
Great video series bro, really appreciate it.
Glad you like them Arun
Hello,
Thank you so much for the information you have shared about GITLab. I am new to GITLab and learning so much from your videos. It would be really helpful if you can provide information about
1- creating merge requests
2- solving merge conflicts.
3- Hosting html, css code on GItLab
4- Stashing the changes
5- basic git-bash commands
You are most welcome Prajkta, I will add sessions on these
Hi Raghav,
Can we use gitlab instead of jenkins for CI in appium automation. Also I want notification of running and report to slack. Is it possible?
Hi Anju, yes you can use gitlab for ci. Reporting is also possible although I have not explored all options in detail. You can try some online help
Wow! So good. Thank you
Glad you liked it!
Thanks for this video.its really helpful. If we want to have jobs to executed for specific branch how do proceed?
will add a session for that Nithya
Hi Raghav, thanks again. I was able to recreate the same as you mentioned in the tutorial. I want to learn more about writing complex yml file for ci/cd pipeline based upon conditions. Can you advise where to look for those especially running python scripts via CI/CD?
Sounds great. You can check online for more advanced tutorials, I will also plan more sessions soon.
Hi sir...So crystal clear explanation tq so much
Sir how to reach you if we have any queries in automation?
Sir how to reach you if we have any queries in automation?
Hi Satya, you can post in TH-cam comments like you did this one. I always read and reply to all my comments
very nice it helped he so much ! well explained
Glad it helped Abhay
You are the best teacher
Thanks a lot
Thank you so much for this awesome video , can you please explain about the merge request validation that means how it will check the code and run the job if any merge request come
Hi Himanshu, I will plan to add a session on this
Wonderful introduction series of videos.
Glad you like them!
Thanks you. Greeting from Germany
Thanks for watching!
Raghav Pal thank you for this tutorial. I'm not able to see my .yml file on GitLab, even if it has the green mark on the folder. Do you know what could be wrong?
Just check if its location is mentioned in .gitignore file
It was very nice.. Thanks for this Raghav
Most welcome Shanth
Thanks a lot Bro, it was a nice intro
Most welcome Sriram
Very very nice instruction
Thanks Tran
Perfect video,,, Great work @Raghav
Thanks Dipin
cool tutorial, Raghav. thank you
Most welcome Bulat
this tutorial series is really good..
but if possible then please create one more tutorial series for industrial automation process ( for software industries ) along with actual JOB writing and SCHEDULING it.
I will plan for it Anil
Thanks for this nice video
Most welcome
Hello Raghav - Thank you for sharing the knowledge with us :) . I have one query in your example using the local Mac or Window machine to setup the GitLab runner and doing the commits from same machine which is working as excepted , however if we want to setup GitLab runner on Different machine ( Not on the local machine) and want to do commits from local machine - is that steps remains same or else need to make any changes - If you don't mind could you please upload video on the same?
Hi Mahesh, i will do a session on this
Very useful material. Raghav do you have other material of yours for Gitlab and pipelines? Advanced material as well. Please let me know.
Thanks Heena, All tutorials can be found here - automationstepbystep.com/
Hi Raghav, thanks a lot for sharing all the information with the world, very much appreciated! just a query, if you could reply soon, I am doing hands on with pipelines and creating jobs in gitlab, when I am trying to use the runner which you taught us to install, register and start, gitlab is asking for validation, is it mandatory validating the account even if I want to use the runner created by me like you guided us and not using the shared ones.
Hi Abhinav, I will need to verify on this
@@RaghavPal Have you verified on this because its still an issue and I am not able to see the successful job runs.
I tried re-registering the runner from the scratch and then pushed new file. but still its giving the error that pipeline failed because "user account is not verified" !!
Thank you so much for these videos!! I do have a question: I followed along with the series in setting up Gitlab, but for some reason this last part got confusing for me. Everything went fine except for the last step when i went to Pipelines and Jobs under CI/CD. For some reason the configuration is not made yet, because it suggests me to Create CI/CD configuration file when i press Jobs and asks me to use different templates under Pipelines.. Not quite sure where I went wrong.
Hi Nora, I will need to check on this, will update
Thank you so much for sharing the knowledge. I am new to gitlab. I want to learn Newman test execution with CI/CD pipeline and integrated with postman collection. Do we have any videos related to Newman test automation. Currenty i am facing issue with Newman CI/CD test execution. My test scripts are pass in postman but fails in Newman test exection with 401 un authrized error.
Thanks for your help in advance.
Hi Venkat, you may need to add your credentials, also try running as admin
excellent tutorial
Thanks Gajendra