thank you very much, i didn't know where to start, and like almost always wecan easily drown in the official documentation ... a quick exemple like this is really nice !
@leeritenour5 жыл бұрын
Great video! One thing that I would suggest is to make a different job name from the stage name so the new beginner won't get confused in the first place. Thanks for the good work!
@vdespa5 жыл бұрын
Yes. That is a good suggestion. Thank you for pointing it out.
@geetanjalibharambe6944 жыл бұрын
Really a nice video for the beginners like me. And i also had same suggestion. Keep different names so that it will be more helpful and easier to understand. Thanks.
@far-red4 жыл бұрын
im trying to make this work with an ASP.NET MVC to run of my local 'git runner', however this is the first time that such builds works thanks... giving me confidence to explore further..
@vdespa4 жыл бұрын
Good luck in getting this to run! 💪
@chitizshrestha98465 жыл бұрын
Thanks for the tutorial, I am wondering whether you can do some of tutorial highlighting different mode of a runner (shell, docker, ssh etc.. ), It will be very helpful. Regards,
@EdRandall664 жыл бұрын
Got me going, thankyou. Next hurdle, to understand different types of Runner, how to choose the right one and build using mvn.
@vdespa4 жыл бұрын
I am glad this helped. I would suggest starting with the Docker runner.
@babakmaraghechi20403 жыл бұрын
As they say in German "short but crisp". Good job! Thank you!
@vdespa3 жыл бұрын
Thanks, Babak!
@prasannapadmanabhan4233 жыл бұрын
Excellent demonstration of a Simple Gitlab CI Pipeline. Thank you very much.
@vdespa3 жыл бұрын
Glad it was helpful!
@losoclub5 жыл бұрын
It's useful to give jobs and stages different names so conceptually it's easier to understand, even if your job is "build_job" it clearly marks it as something different from the build stage.
@SuperMakoto134 жыл бұрын
Good intro to GitLab CI
@vdespa4 жыл бұрын
I am glad it was helpful, Paul!
@AntJac-p5s2 ай бұрын
Good video! Simple and clear explanation. I am shocked to see that this simple pipeline took 4:25 to complete though! :O
@vdespa2 ай бұрын
You are welcome. Thank you for leaving a comment.
@simon_sysadmin4 жыл бұрын
Great tuto, tnxs
@vdespa4 жыл бұрын
Thank you! I appreciate that.
@cizzlen074 жыл бұрын
Awesome stuff. I really like Gitlab source control over the rest. Smooth easy and functional. Thanks for the tutorial!
@vdespa4 жыл бұрын
Thank you! I like GitLab as well.
@ЕлизаветаВиноградова-с3г2 жыл бұрын
Thank u so much for this guide! It coud be better if u tell about this commands and how it works :)
@vdespa2 жыл бұрын
Thanks 👍 I went into more details on this on my GitLab course. Maybe this would be something for you.
@eugene_zah4 жыл бұрын
Hi, @Valentin Despa. Thanks for your helpful video. Could you, please, shoot some videos about gitlab api and how to use it correctly?
@vdespa4 жыл бұрын
Hi Eugene. Thanks for your comment. What would you like to do with the GitLab API. Can you give me an example?
@arockdurai51102 жыл бұрын
Simple and easy to follow. Excellent presentation
@vdespa2 жыл бұрын
Thank you, Arock!
@divyakasturi37704 жыл бұрын
This is great for an amateur!
@vdespa4 жыл бұрын
Thanks
@davidhiggzmusic3 жыл бұрын
Thank you! Easy and simple Tutorial, way better then the original documentation :)
@vdespa3 жыл бұрын
Thanks. I am glad it was useful.
@sukhendra1004 жыл бұрын
Thanks Valentin. Very helpful.
@vdespa4 жыл бұрын
Glad it was helpful!
@VicenteMartinsvm5 жыл бұрын
Thnx a lot! I was searching a basic guide how to config autodevops and your explanation help me a lot. Thankyou!
@VicenteMartinsvm5 жыл бұрын
@@vdespa we work with web development in general. I did the config to a project using Laravel.
@BrandingChangeYep4 жыл бұрын
Good tutorial, maybe one thing would be to let people know you're going to be making an example that fails initially. At first I thought I did something wrong and wasted time checking around gitlab to see what happened.
@vdespa4 жыл бұрын
Thanks Ryan. In real life scenarios, you don't know if sometimes will work or fail. But I understood you point.
@mihailkatsarov32095 жыл бұрын
Great tutorial and really great job Valentin!
@vdespa5 жыл бұрын
Thank you so much, Mihail. I appreciate you leaving this comment.
@malayaleeking3 жыл бұрын
Sick tutorial bro! Thanks 👍
@vdespa3 жыл бұрын
No problem 👍
@jacksonwang93082 жыл бұрын
Very nice and clean demo for beginners😀
@vdespa2 жыл бұрын
Glad you liked it!
@abreurodrigo5 жыл бұрын
Great video buddy, thanks!
@vdespa5 жыл бұрын
You are welcome! Thank you for your comment.
@mateomotriz4 жыл бұрын
well first things first, absolutely great video i'm a beginner in the CI world and I've been documenting myself for several days now, but it's pretty dense; just one question, we didn't write any piece of code to select the image (which i understand as the docker 'file' we are using), so i assume gitlab is smart enough to use one of its shared runners right? which one would it be? thanks a lot
@vdespa4 жыл бұрын
Great question, Mateo! On Gitlab.com, any job (if not configured differently) will use one of the Gitlab.com shared runners. The shared runner will get the Docker image specified from the public Docker repository (Dockerhub). This is why no code is needed. Even with other Docker runners, this will work the same. Does this clarify your concern?
@mateomotriz4 жыл бұрын
@@vdespa yes, thanks a lot! but now i have another concern (dont kill me): i checked it and in my case the runner used the Ruby 2.5 docker image to build our yaml; i'm planning on trying to implement ci in three different projects (arduino/c++, vhdl, c), would these image features be enough to test my code with ci? sorry if i dont concrete more, but as i said im a total beginner and you are helping me a lot :p
@vdespa4 жыл бұрын
@@mateomotriz Hi Mateo. Typically the Ruby 2.5 is the default docker image for the runners. You can specify any Docker image you need. Please refer to my Gitlab CI course which will most likely answer all your questions. Thanks.
@mateomotriz4 жыл бұрын
@@vdespa thanks a lot!
@НиколайСладкий-н4к5 жыл бұрын
Thank you so much, now I understand the artifacts was for.
@issadevs3 жыл бұрын
Great tutorial! Advancing it will be very helpful! Thank you!
@cesarniyomugabo30973 жыл бұрын
Good Job! Thank you!
@vdespa3 жыл бұрын
Thanks 👍
@CatherineKarena6 жыл бұрын
Valentin, you really do have an awesome collection of useful, practical and informative videos
@megatron7415 жыл бұрын
Great tutorial. Easy to understand for beginners.
@JeanSergeGagnon4 жыл бұрын
Thanks for great tutorial for beginners! What tools do you use to add arrows and zoom in while talking?
@vdespa4 жыл бұрын
Thank you for your appreciation! These effects are added in post-production. In macOS you can simply zoom in with cmd + touchpad. You can add arrows or draw with a tool like DemoPro.
@rahulpandey65825 жыл бұрын
such a nice start for gitlab!! thanks
@FelipeBarbosaGoogle4 жыл бұрын
Thanks for the great tutorial
@vdespa4 жыл бұрын
You are welcome! Thanks for commenting.
@sten63936 жыл бұрын
Very helpful video, I would like to see more about GitLab CI/CD tutorials from you!
@sten63936 жыл бұрын
Nice to hear, I plan to use GitLab for developing HTML, CSS, JavaScript and also PHP websites. And that it get pushed to a test to docker with every commitment that happens.
@huynhthanh52075 жыл бұрын
Thanks for sharing. It's useful for me.
@FanousHani4 жыл бұрын
Good Tutorial Thanks!
@vdespa4 жыл бұрын
I am glad it was helpful.
@dingadong135 жыл бұрын
Very helpful and concise tutorial. Thanks!
@uimarshall60125 жыл бұрын
Great work!
@hosseinsafari43194 жыл бұрын
Thanks a lot, you are amazing
@vdespa4 жыл бұрын
Thanks for watching.
@ArtemMELNYK4 жыл бұрын
Well done! This is a good explanation.
@vdespa4 жыл бұрын
Glad you think so! Thanks for commenting.
@recepozturk67114 жыл бұрын
Thank you man.
@vdespa4 жыл бұрын
You are welcome!
@musicpitran63206 жыл бұрын
That's amazing. You bring me to GitLab CI world by a wonderful video. Thank you so much :P
@MindfulnessCoachJagdishAhir5 жыл бұрын
nice for start thanks
@vdespa5 жыл бұрын
You're welcome. Let me know what else to cover about Gitlab.
@eyalpery84706 жыл бұрын
Very clear explanation ! Thank you!
@lakkireddysrinivasareddy66896 жыл бұрын
Good for very new guys, thank you
@praseebkdas253 жыл бұрын
Can you prepare a video to enable Gitlab Pages in CE 14.5.0 in a fresh setup, it will be really helpful. ( docker or standalone setup anything is fine)
@vdespa3 жыл бұрын
Thank you for you suggestion! I will look into that.
@rajiv08855 жыл бұрын
Great video!.. Thanks for Sharing. Is there any video which gives end to end process of integrating Jmeter to Gitlab ? If so could you please share.
@shokhrukhabduahadov39855 жыл бұрын
Thank you good intro! Is there any more advanced examples?
@shokhrukhabduahadov39855 жыл бұрын
@@vdespa bro i dont have money to pay for course
@koolresearcher6 жыл бұрын
can you please make same think with specific runner? otherwise create a specific runner with same job. looking to hear from you.
@DhrumilSoni8125 жыл бұрын
Thanks for sharing knowledge..!!
@raghudatta946 жыл бұрын
Thanks you made my day!!
@ojitelikenechukwu38953 ай бұрын
Very helpful....thanks a bunch
@vdespa3 ай бұрын
You are welcome. Thank you for leaving a comment.
@duytuyeno54075 жыл бұрын
Good video. Thank you
@kickmenot23 жыл бұрын
thanks for the "kiss"
@nicdddd4 жыл бұрын
I found more questions like : "where are the directory build and the txtFile to find?" (default runner settings, default gitlab settings) And could not find any answer from @ValentinDespa. If you do not know, is allright, but pls tell us, in order not to hope to your ansere. Thank you
@vdespa4 жыл бұрын
Hi, the main idea is that you should not care where they are. They are created inside a Docker container which is destroyed after the job is done. This is why, if you want to keep something, you publish this as artifacts.
@artgilbert51824 жыл бұрын
I had to setup a runner for my local installation of gitlab. It took 15 minutes. FYI to those running gitlab locally.
@vdespa4 жыл бұрын
Thanks for letting me know.
@thehumanchannel90044 жыл бұрын
Amaziiing!
@vdespa4 жыл бұрын
You are welcome. Thank you for leaving a comment.
@FessAectan6 жыл бұрын
Thanks a lot! It was useful.
@jeenaparadies5 жыл бұрын
Can you somehow share pipelines between components? For example most C++ components will have a cmake && make && make test structure and it wouldn't make sense to have copies of the pipelines en every git repo, but it would make sense to centrilize them.
@TwoManArmyLP5 жыл бұрын
Thanks for the tutorial, however, any idea why the first job hangs on "pending" for me?
@TwoManArmyLP5 жыл бұрын
@@vdespa yep figured that out already but forgot to edit my comment. Thanks for the reply anyway, great content, keep it up :)
@rafaelmeirait5 жыл бұрын
Thanks for sharring!
@БорисЮринов-ъ8ъ2 жыл бұрын
thanks
@vdespa2 жыл бұрын
You are welcome!
@akashshrestha013 жыл бұрын
great
@vdespa3 жыл бұрын
Thanks!
@prasadreddy95792 жыл бұрын
Hi, May I how can get the artifacts like application generated logs ?
@copypaiste5 жыл бұрын
good one, thanks!
@georgezviadgoglodze78105 жыл бұрын
Good job
@shanebowen976 жыл бұрын
Valentin, how can you read in a file saved in your computer and use it in your pipeline? Thank you
@shanebowen976 жыл бұрын
@@vdespa Is there a method then that I can read that file in my .yml file?
@shanebowen976 жыл бұрын
@@vdespa It is just a simple python file that prints Hello World. I am just trying to test that file.
@LarrySiden2 жыл бұрын
Hey, you didn’t tell us how to install and configure the Gitlab runner. That’s a crucial step. Maybe it’s in another video. I haven’t explored the channel yet.
@vdespa2 жыл бұрын
Use the shared runners from GitLab. That is the easiest way to get started.
@jimbrent81515 жыл бұрын
Well done. Thank you.
@kmlopxyz6 жыл бұрын
Does the image automatically pulled based on the project type? (e.g php, ruby, JavaScript)
@DanielDogeanu5 жыл бұрын
Question: If you install something, via `npm install` or `apt-get`, do you have to remove those installing steps after you run your first job? Or does your pipeline image get regenerated every time it runs? I ask this question because I've seen it done on BitBucket, but it seems to fail on GitLab.
@coronaupdates72892 жыл бұрын
hey bro can u teach us that how to run jmeter test plan from gitlab pleas
@RichardBuckerCodes6 жыл бұрын
gitlab is great... just not sure about security
@AjeetSingh-ti2yg4 жыл бұрын
Hi Valentin, Thanks for shearing the video ..... I have one Question .... i am automation Tester (selenium ,core java)and i want to implement CI but i have big numbers of code with Framework, how i will create YAML file please help me out for this concern ,there is some other way to create YAML file? ..Thanks:) Ajeet
@vdespa4 жыл бұрын
I am not sure I fully understand your question. You need to manually create the file for your projects.
@AjeetSingh-ti2yg4 жыл бұрын
Do you have any video, how to create YAML file for complex automation testing project? Thanks 😊
@vdespa4 жыл бұрын
@@AjeetSingh-ti2yg I recommend taking a look at my course outline. See the link in the video description.
@kondareddyish5 жыл бұрын
learned something Thanks
@SaMGoesHaM14 жыл бұрын
Great tutorial! Do you by any chance know how to integrate Gitlab with Java? my .yml file is configured as below image: java:latest stages: - build - execute build: stage: build script: - echo "Building..." - javac src/Hello.java artifacts: paths: - src/ execute: stage: execute script: - echo "Executing..." - java src/Hello I am just uploading a project that says hello world. this program gives me the error that "could not find or load main class src.Hello". does anyone know what Im doing wrong?
@vdespa4 жыл бұрын
Are you using maven or Gradle?
@SaMGoesHaM14 жыл бұрын
@@vdespa I didn't choose maven or gradle when i created my intellij project. It's a simple java default program without pom.xml or build.gradle
@vdespa4 жыл бұрын
Make sure you have committed the Hello.java file and that you can see it inside the repository. Try ./src/Hello.java
@rajaramesh88455 жыл бұрын
HI, where does the build directory creates?
@kosterix1235 жыл бұрын
next time take note of gotchas. Pause a bit longer on the working code (6:01). Otherwise good instruction.
@Manlowkeysus5 жыл бұрын
so i need to host my webapp before running it in ci cd pipelines or gitlab need to be installed on same server !
@Manlowkeysus5 жыл бұрын
@@vdespa no its a question in essence there are only 2000 push/trigger free for self hosted solution correct
@SoloSyndicate3 жыл бұрын
Where do the stages actually run though? I assume these 'build' and 'test' stages are executing code locally in this example but in application this is likely to be done in different environments. How can you tell and configure where these stages run?
@vdespa3 жыл бұрын
The pipeline runs in Docker containers. This has nothing to do with the environments where you deploy the application.
@SoloSyndicate3 жыл бұрын
@@vdespa Thanks for the reply. But my question remains.. What are these containers? Does gitlab choose a vanilla linux distro container by default? What if I need a specific container image with dependencies for each stage?
@vdespa3 жыл бұрын
@@SoloSyndicate Yes, they are Linux containers. You can specify one for each job. Have a look at my course, i think you could benefit from it.
@marwanghabin87584 жыл бұрын
could you please add deployment to kubernets in this udemy course ?
@vdespa4 жыл бұрын
Thanks for your suggestion. I will look into this.
@vineeshhjhj5 жыл бұрын
Thank you. Can you please make a video on how to run a test from Gitlab on BrowserStack cloud browsers?
@nayanlakhwani20885 жыл бұрын
How to configure .gitlab-ci.yml file in such a way that pipeline gets triggered only on push or merge to master branch? as of now it is getting triggered on any action to every branch.
@vdespa5 жыл бұрын
You can use the only or expect modifier. See docs.gitlab.com/ee/ci/yaml/#onlyexcept-basic
@nayanlakhwani20885 жыл бұрын
Thank you
@TimRubel2 жыл бұрын
How do I publish the project?
@darronbrown21195 жыл бұрын
CI /CD option isn't available in my GitLad repo. Any suggestions?
@raghur34243 жыл бұрын
Hi,in Gitlab i have one stage Deploy i want to build login and push to ACR. how can we tag the latest image everytime i build an image it shld be get it a latest. can u tel me the command.
@gibrankhan82323 жыл бұрын
How does docker gets involved in this, i did not see any configuration or integration of Docker in this...please help
@vdespa3 жыл бұрын
There is a default Docker image that is used.
@vbessonow3 жыл бұрын
what test -f does? It is bash command? I can run test -f in the terminal, but nothing happends
@vdespa3 жыл бұрын
Yes, test is a Linux command/tool. See linux.die.net/man/1/test
@peytonhanel70595 жыл бұрын
When mkdir build is called, where does that directory go? It is not in the rest of my files on gitlab.
@peytonhanel70595 жыл бұрын
@@vdespa yes, thank you.
@peytonhanel70593 жыл бұрын
@Shawn Thank you
@duytuyeno54075 жыл бұрын
How can i deploy Gitlab CI/CD with Jenkins ? Do you have guideline ?
@duytuyeno54075 жыл бұрын
@@vdespa i mean we have once Jenkins server to do build,test,deploy applications with Gitlab, so how can i do it ?
@Anshulmishra1606 жыл бұрын
Please post Gitlab ci for AWS also for code deploy
@hrudhayd90955 жыл бұрын
@@vdespa Can we Deploy the build after testing into environments created on AWS?
@hozzer5 жыл бұрын
@@hrudhayd9095 That would be so helpful
@rimjhim42785 жыл бұрын
where is the folder "buiild" create ? I could not find it in the repo
@vdespa4 жыл бұрын
Why are you learning GitLab CI? Write a comment below and let me know.
@davidchalon54665 жыл бұрын
Hi super starting demo. Have you infos to create jobs on self hosted gitlab (testing in demo vm currently) for sysadmin bash shell scripts. I have only à Shell-runner with shellcheck command now and no other test, nor CD tasks. Wanna go further to make a demo to other admins and some "dev" that near even't don't use basic git or issue management...
@davidchalon54665 жыл бұрын
@@vdespa i start to use gitlab for shell scripts only currently. (bash), because i don't do dev in other langages now. I have find only 1 task in ci : shellcheck, a linter. I'm looking for more tasks to add, in CI or CD, with this case. Goal : see if i can have more helping tools, even on simple admin shell scripts. And to make a demo for other users and try convince them to try gitlab, even for small internal projects
@davidchalon54665 жыл бұрын
Where i am, there is. Many People coding small to medium codes, but without développer methods. Even sometimes without vcs or Issue.... I thnik i could help them
@ichrakzouari51713 жыл бұрын
thanks for the tuto but I have an error '' Pulling docker image gitlab/gitlab-runner-helper:x86_64-7f7a4bb0-servercore2004'' failed can you help me please ?
@vdespa3 жыл бұрын
I recommend using GitLab.com and their shared runners if you are just getting started with pipelines.
@marcelbrode38374 жыл бұрын
I thought it was a tutorial, but at the end of the video, the music told me its a kickstarter project
@vdespa4 жыл бұрын
🤷♂️
@YamiSuzume4 жыл бұрын
@@vdespa :D
@tanvirahmedsiddique16516 жыл бұрын
can you upload the .yml file in the description?
@tanvirahmedsiddique16516 жыл бұрын
@@vdespa thanks for the file, can you give us the idea of how to write .yml file for more complex projects please?
@tanvirahmedsiddique16516 жыл бұрын
@@vdespa such as a python project or a .net project.
@tanvirahmedsiddique16516 жыл бұрын
@@vdespa if you do then please share the link here.
5 жыл бұрын
what if you want 2 pipelines?
5 жыл бұрын
@@vdespa yep figured it out, i have a script for the jenkins pipeline, and a new one for a sonarQ job.
@StEvUgnIn3 жыл бұрын
I can't get any runner to work... I am on my school's gitlab and we have one shared runner that won't work...
@vdespa3 жыл бұрын
If you are just learning GitLab CI, use the shared runners that GitLab.com offers.
@BrunoCostaDeMatos6 жыл бұрын
Valentin you know resolve this error? mesg: ttyname failed: Inappropriate ioctl for device bash: line 55: export: `1=yes': not a valid identifier ERROR: Job failed: exit status 1
@BrunoCostaDeMatos6 жыл бұрын
@@vdespa okay, I'll try to figure it out for myself. Thanks for the video.