Gitlab CI pipeline tutorial for beginners

Поділитися
Вставка
  • Опубліковано 16 чер 2024
  • 🚀 Learn GitLab CI in 6 hours - Build & deploy to AWS
    www.udemy.com/course/gitlab-c...
    YAML configuration used in the video:
    gitlab.com/vdespa/my-simple-p...
    Video Contents
    ⌨️ 00:00 Introduction
    ⌨️ 00:38 New GitLab Project
    ⌨️ 01:09 Pipeline Definition
    ⌨️ 03:51 Pipeline Execution
    ⌨️ 04:59 Job Artifacts
    ⌨️ 07:00 Conclusion
    📬 Connect with Me
    X: x.com/vdespa
    Medium: / vdespa
    Facebook: / valentin-despa-1130381...
    LinkedIn: / vdespa
    Imprint: vdespa.com/imprint

КОМЕНТАРІ • 231

  • @pepin55i5
    @pepin55i5 4 роки тому +26

    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 !

  • @CatherineKarena
    @CatherineKarena 5 років тому

    Valentin, you really do have an awesome collection of useful, practical and informative videos

  • @cizzlen07
    @cizzlen07 4 роки тому +5

    Awesome stuff. I really like Gitlab source control over the rest. Smooth easy and functional. Thanks for the tutorial!

    • @vdespa
      @vdespa  4 роки тому +1

      Thank you! I like GitLab as well.

  • @user-kn6vr7el8y
    @user-kn6vr7el8y 5 років тому +3

    Thank you so much, now I understand the artifacts was for.

  • @chitizshrestha9846
    @chitizshrestha9846 5 років тому +40

    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,

  • @dingadong13
    @dingadong13 5 років тому +1

    Very helpful and concise tutorial. Thanks!

  • @eyalpery8470
    @eyalpery8470 5 років тому

    Very clear explanation !
    Thank you!

  • @musicpitran6320
    @musicpitran6320 5 років тому

    That's amazing. You bring me to GitLab CI world by a wonderful video. Thank you so much :P

  • @megatron741
    @megatron741 5 років тому +1

    Great tutorial. Easy to understand for beginners.

  • @issadevs
    @issadevs 3 роки тому

    Great tutorial! Advancing it will be very helpful! Thank you!

  • @rahulpandey6582
    @rahulpandey6582 4 роки тому

    such a nice start for gitlab!! thanks

  • @leeritenour
    @leeritenour 4 роки тому +40

    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!

    • @vdespa
      @vdespa  4 роки тому +5

      Yes. That is a good suggestion. Thank you for pointing it out.

    • @geetanjalibharambe694
      @geetanjalibharambe694 3 роки тому +2

      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.

  • @davidhiggzmusic
    @davidhiggzmusic 3 роки тому +4

    Thank you! Easy and simple Tutorial, way better then the original documentation :)

    • @vdespa
      @vdespa  3 роки тому +1

      Thanks. I am glad it was useful.

  • @uimarshall6012
    @uimarshall6012 5 років тому +1

    Great work!

  • @raghudatta94
    @raghudatta94 5 років тому

    Thanks you made my day!!

  • @VicenteMartinsvm
    @VicenteMartinsvm 5 років тому

    Thnx a lot! I was searching a basic guide how to config autodevops and your explanation help me a lot. Thankyou!

    • @VicenteMartinsvm
      @VicenteMartinsvm 5 років тому

      @@vdespa we work with web development in general. I did the config to a project using Laravel.

  • @jimbrent8151
    @jimbrent8151 5 років тому

    Well done. Thank you.

  • @mihailkatsarov3209
    @mihailkatsarov3209 4 роки тому +1

    Great tutorial and really great job Valentin!

    • @vdespa
      @vdespa  4 роки тому +1

      Thank you so much, Mihail. I appreciate you leaving this comment.

  • @sten6393
    @sten6393 5 років тому

    Very helpful video, I would like to see more about GitLab CI/CD tutorials from you!

    • @sten6393
      @sten6393 5 років тому

      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.

  • @lakkireddysrinivasareddy6689
    @lakkireddysrinivasareddy6689 5 років тому

    Good for very new guys, thank you

  • @vdespa
    @vdespa  4 роки тому +3

    Why are you learning GitLab CI? Write a comment below and let me know.

  • @FessAectan
    @FessAectan 5 років тому

    Thanks a lot! It was useful.

  • @duytuyeno5407
    @duytuyeno5407 5 років тому +1

    Good video. Thank you

  • @prasannapadmanabhan423
    @prasannapadmanabhan423 2 роки тому

    Excellent demonstration of a Simple Gitlab CI Pipeline. Thank you very much.

    • @vdespa
      @vdespa  2 роки тому

      Glad it was helpful!

  • @rafaelmeirait
    @rafaelmeirait 4 роки тому

    Thanks for sharring!

  • @huynhthanh5207
    @huynhthanh5207 4 роки тому

    Thanks for sharing. It's useful for me.

  • @DhrumilSoni812
    @DhrumilSoni812 4 роки тому

    Thanks for sharing knowledge..!!

  • @kondareddyish
    @kondareddyish 5 років тому

    learned something Thanks

  • @copypaiste
    @copypaiste 4 роки тому

    good one, thanks!

  • @arockdurai5110
    @arockdurai5110 2 роки тому

    Simple and easy to follow. Excellent presentation

    • @vdespa
      @vdespa  2 роки тому

      Thank you, Arock!

  • @sukhendra100
    @sukhendra100 3 роки тому +1

    Thanks Valentin. Very helpful.

    • @vdespa
      @vdespa  3 роки тому

      Glad it was helpful!

  • @abreurodrigo
    @abreurodrigo 4 роки тому +2

    Great video buddy, thanks!

    • @vdespa
      @vdespa  4 роки тому

      You are welcome! Thank you for your comment.

  • @FelipeBarbosaGoogle
    @FelipeBarbosaGoogle 4 роки тому +1

    Thanks for the great tutorial

    • @vdespa
      @vdespa  4 роки тому

      You are welcome! Thanks for commenting.

  • @losoclub
    @losoclub 5 років тому

    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.

  • @FanousHani
    @FanousHani 4 роки тому +1

    Good Tutorial Thanks!

    • @vdespa
      @vdespa  4 роки тому

      I am glad it was helpful.

  • @far-red
    @far-red 4 роки тому +1

    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..

    • @vdespa
      @vdespa  4 роки тому

      Good luck in getting this to run! 💪

  • @malayaleeking
    @malayaleeking 2 роки тому

    Sick tutorial bro! Thanks 👍

    • @vdespa
      @vdespa  2 роки тому

      No problem 👍

  • @babakmaraghechi2040
    @babakmaraghechi2040 2 роки тому +1

    As they say in German "short but crisp". Good job! Thank you!

    • @vdespa
      @vdespa  2 роки тому

      Thanks, Babak!

  • @EdRandall66
    @EdRandall66 4 роки тому +1

    Got me going, thankyou. Next hurdle, to understand different types of Runner, how to choose the right one and build using mvn.

    • @vdespa
      @vdespa  4 роки тому

      I am glad this helped. I would suggest starting with the Docker runner.

  • @georgezviadgoglodze7810
    @georgezviadgoglodze7810 5 років тому

    Good job

  • @__greg__
    @__greg__ 2 роки тому +1

    very helpful, thanks!

    • @vdespa
      @vdespa  2 роки тому

      Glad to hear. Thanks

  • @cesarniyomugabo3097
    @cesarniyomugabo3097 2 роки тому +1

    Good Job! Thank you!

    • @vdespa
      @vdespa  2 роки тому

      Thanks 👍

  • @rajiv0885
    @rajiv0885 5 років тому

    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.

  • @simon_sysadmin
    @simon_sysadmin 4 роки тому +1

    Great tuto, tnxs

    • @vdespa
      @vdespa  4 роки тому

      Thank you! I appreciate that.

  • @recepozturk6711
    @recepozturk6711 4 роки тому +1

    Thank you man.

    • @vdespa
      @vdespa  4 роки тому

      You are welcome!

  • @thehumanchannel9004
    @thehumanchannel9004 4 роки тому +1

    Amaziiing!

    • @vdespa
      @vdespa  4 роки тому

      You are welcome. Thank you for leaving a comment.

  • @hosseinsafari4319
    @hosseinsafari4319 3 роки тому +1

    Thanks a lot, you are amazing

    • @vdespa
      @vdespa  3 роки тому

      Thanks for watching.

  • @DanielDogeanu
    @DanielDogeanu 5 років тому

    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.

  • @divyakasturi3770
    @divyakasturi3770 4 роки тому +1

    This is great for an amateur!

  • @eugene_zah
    @eugene_zah 4 роки тому +4

    Hi, @Valentin Despa. Thanks for your helpful video. Could you, please, shoot some videos about gitlab api and how to use it correctly?

    • @vdespa
      @vdespa  4 роки тому +1

      Hi Eugene. Thanks for your comment. What would you like to do with the GitLab API. Can you give me an example?

  • @MindfulnessCoachJagdishAhir
    @MindfulnessCoachJagdishAhir 4 роки тому +1

    nice for start thanks

    • @vdespa
      @vdespa  4 роки тому

      You're welcome. Let me know what else to cover about Gitlab.

  • @ArtemMELNYK
    @ArtemMELNYK 4 роки тому +3

    Well done! This is a good explanation.

    • @vdespa
      @vdespa  4 роки тому

      Glad you think so! Thanks for commenting.

  • @jacksonwang9308
    @jacksonwang9308 2 роки тому

    Very nice and clean demo for beginners😀

    • @vdespa
      @vdespa  2 роки тому

      Glad you liked it!

  • @JeanSergeGagnon
    @JeanSergeGagnon 4 роки тому +1

    Thanks for great tutorial for beginners! What tools do you use to add arrows and zoom in while talking?

    • @vdespa
      @vdespa  4 роки тому

      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.

  • @jeenaparadies
    @jeenaparadies 5 років тому

    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.

  • @shokhrukhabduahadov3985
    @shokhrukhabduahadov3985 4 роки тому +1

    Thank you good intro! Is there any more advanced examples?

  • @koolresearcher
    @koolresearcher 5 років тому

    can you please make same think with specific runner? otherwise create a specific runner with same job. looking to hear from you.

  • @kmlopxyz
    @kmlopxyz 5 років тому

    Does the image automatically pulled based on the project type? (e.g php, ruby, JavaScript)

  • @user-hs3vx9og5o
    @user-hs3vx9og5o 2 роки тому +1

    Thank u so much for this guide! It coud be better if u tell about this commands and how it works :)

    • @vdespa
      @vdespa  2 роки тому

      Thanks 👍 I went into more details on this on my GitLab course. Maybe this would be something for you.

  • @user-tv9gk8df1u
    @user-tv9gk8df1u 2 роки тому

    thanks

    • @vdespa
      @vdespa  2 роки тому

      You are welcome!

  • @SuperMakoto13
    @SuperMakoto13 4 роки тому +1

    Good intro to GitLab CI

    • @vdespa
      @vdespa  4 роки тому

      I am glad it was helpful, Paul!

  • @prasadreddy9579
    @prasadreddy9579 Рік тому

    Hi, May I how can get the artifacts like application generated logs ?

  • @akashshrestha01
    @akashshrestha01 2 роки тому

    great

  • @BrandingChangeYep
    @BrandingChangeYep 3 роки тому +2

    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.

    • @vdespa
      @vdespa  3 роки тому +1

      Thanks Ryan. In real life scenarios, you don't know if sometimes will work or fail. But I understood you point.

  • @mateomotriz
    @mateomotriz 4 роки тому +5

    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

    • @vdespa
      @vdespa  4 роки тому +2

      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?

    • @mateomotriz
      @mateomotriz 4 роки тому

      @@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

    • @vdespa
      @vdespa  4 роки тому +4

      @@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.

    • @mateomotriz
      @mateomotriz 4 роки тому +1

      @@vdespa thanks a lot!

  • @raghur3424
    @raghur3424 2 роки тому

    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.

  • @rajaramesh8845
    @rajaramesh8845 4 роки тому

    HI, where does the build directory creates?

  • @vineeshhjhj
    @vineeshhjhj 5 років тому

    Thank you. Can you please make a video on how to run a test from Gitlab on BrowserStack cloud browsers?

  • @kickmenot2
    @kickmenot2 3 роки тому +1

    thanks for the "kiss"

  • @praseebkdas25
    @praseebkdas25 2 роки тому

    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)

    • @vdespa
      @vdespa  2 роки тому +1

      Thank you for you suggestion! I will look into that.

  • @TwoManArmyLP
    @TwoManArmyLP 4 роки тому

    Thanks for the tutorial, however, any idea why the first job hangs on "pending" for me?

    • @TwoManArmyLP
      @TwoManArmyLP 4 роки тому

      @@vdespa yep figured that out already but forgot to edit my comment. Thanks for the reply anyway, great content, keep it up :)

  • @darronbrown2119
    @darronbrown2119 5 років тому

    CI /CD option isn't available in my GitLad repo. Any suggestions?

  • @artgilbert5182
    @artgilbert5182 3 роки тому

    I had to setup a runner for my local installation of gitlab. It took 15 minutes. FYI to those running gitlab locally.

    • @vdespa
      @vdespa  3 роки тому

      Thanks for letting me know.

  • @coronaupdates7289
    @coronaupdates7289 2 роки тому

    hey bro can u teach us that how to run jmeter test plan from gitlab
    pleas

  • @RichardBuckerCodes
    @RichardBuckerCodes 5 років тому

    gitlab is great... just not sure about security

  • @shanebowen97
    @shanebowen97 5 років тому

    Valentin, how can you read in a file saved in your computer and use it in your pipeline? Thank you

    • @shanebowen97
      @shanebowen97 5 років тому

      @@vdespa Is there a method then that I can read that file in my .yml file?

    • @shanebowen97
      @shanebowen97 5 років тому

      @@vdespa It is just a simple python file that prints Hello World. I am just trying to test that file.

  • @nicdddd
    @nicdddd 4 роки тому +2

    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

    • @vdespa
      @vdespa  4 роки тому +3

      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.

  • @rimjhim4278
    @rimjhim4278 5 років тому

    where is the folder "buiild" create ? I could not find it in the repo

  • @ichrakzouari5171
    @ichrakzouari5171 3 роки тому

    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 ?

    • @vdespa
      @vdespa  3 роки тому

      I recommend using GitLab.com and their shared runners if you are just getting started with pipelines.

  • @gibrankhan8232
    @gibrankhan8232 2 роки тому

    How does docker gets involved in this, i did not see any configuration or integration of Docker in this...please help

    • @vdespa
      @vdespa  2 роки тому

      There is a default Docker image that is used.

  • @9930527194
    @9930527194 5 років тому

    so i need to host my webapp before running it in ci cd pipelines or gitlab need to be installed on same server !

    • @9930527194
      @9930527194 5 років тому

      @@vdespa no its a question in essence there are only 2000 push/trigger free for self hosted solution correct

  • @TimRubel
    @TimRubel 2 роки тому

    How do I publish the project?

  • @peytonhanel7059
    @peytonhanel7059 5 років тому

    When mkdir build is called, where does that directory go? It is not in the rest of my files on gitlab.

  • @AjeetSingh-ti2yg
    @AjeetSingh-ti2yg 4 роки тому +1

    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

    • @vdespa
      @vdespa  4 роки тому

      I am not sure I fully understand your question. You need to manually create the file for your projects.

    • @AjeetSingh-ti2yg
      @AjeetSingh-ti2yg 4 роки тому

      Do you have any video, how to create YAML file for complex automation testing project? Thanks 😊

    • @vdespa
      @vdespa  4 роки тому

      @@AjeetSingh-ti2yg I recommend taking a look at my course outline. See the link in the video description.

  • @SaMGoesHaM1
    @SaMGoesHaM1 4 роки тому +2

    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?

    • @vdespa
      @vdespa  4 роки тому

      Are you using maven or Gradle?

    • @SaMGoesHaM1
      @SaMGoesHaM1 4 роки тому

      @@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

    • @vdespa
      @vdespa  4 роки тому

      Make sure you have committed the Hello.java file and that you can see it inside the repository. Try ./src/Hello.java

  • @nayanlakhwani2088
    @nayanlakhwani2088 4 роки тому +1

    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.

    • @vdespa
      @vdespa  4 роки тому +1

      You can use the only or expect modifier. See docs.gitlab.com/ee/ci/yaml/#onlyexcept-basic

    • @nayanlakhwani2088
      @nayanlakhwani2088 4 роки тому

      Thank you

  • @duytuyeno5407
    @duytuyeno5407 5 років тому

    How can i deploy Gitlab CI/CD with Jenkins ? Do you have guideline ?

    • @duytuyeno5407
      @duytuyeno5407 5 років тому

      @@vdespa i mean we have once Jenkins server to do build,test,deploy applications with Gitlab, so how can i do it ?

  • @Anshulmishra160
    @Anshulmishra160 5 років тому

    Please post Gitlab ci for AWS also for code deploy

    • @hrudhayd9095
      @hrudhayd9095 5 років тому +1

      @@vdespa Can we Deploy the build after testing into environments created on AWS?

    • @hozzer
      @hozzer 5 років тому

      @@hrudhayd9095 That would be so helpful

  • @BrunoCostaDeMatos
    @BrunoCostaDeMatos 5 років тому

    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

    • @BrunoCostaDeMatos
      @BrunoCostaDeMatos 5 років тому

      @@vdespa okay, I'll try to figure it out for myself. Thanks for the video.

  • @davidchalon5466
    @davidchalon5466 5 років тому

    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...

    • @davidchalon5466
      @davidchalon5466 5 років тому

      @@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

    • @davidchalon5466
      @davidchalon5466 5 років тому

      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

  • @vbessonow
    @vbessonow 3 роки тому +1

    what test -f does? It is bash command? I can run test -f in the terminal, but nothing happends

    • @vdespa
      @vdespa  3 роки тому

      Yes, test is a Linux command/tool. See linux.die.net/man/1/test

  • @SoloSyndicate
    @SoloSyndicate 3 роки тому

    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?

    • @vdespa
      @vdespa  3 роки тому +1

      The pipeline runs in Docker containers. This has nothing to do with the environments where you deploy the application.

    • @SoloSyndicate
      @SoloSyndicate 3 роки тому

      @@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?

    • @vdespa
      @vdespa  3 роки тому

      @@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.

  • @tanvirahmedsiddique1651
    @tanvirahmedsiddique1651 5 років тому

    can you upload the .yml file in the description?

    • @tanvirahmedsiddique1651
      @tanvirahmedsiddique1651 5 років тому

      @@vdespa thanks for the file, can you give us the idea of how to write .yml file for more complex projects please?

    • @tanvirahmedsiddique1651
      @tanvirahmedsiddique1651 5 років тому

      @@vdespa such as a python project or a .net project.

    • @tanvirahmedsiddique1651
      @tanvirahmedsiddique1651 5 років тому

      @@vdespa if you do then please share the link here.

  • @marwanghabin8758
    @marwanghabin8758 3 роки тому

    could you please add deployment to kubernets in this udemy course ?

    • @vdespa
      @vdespa  3 роки тому

      Thanks for your suggestion. I will look into this.

  •  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.

  • @sowmyaaji309
    @sowmyaaji309 4 роки тому

    Hay Valentin, thanks for this video, I'm very new to this. As far as I can make out, I've done everything exactly like you've outlined but I get this error each time: echo "Testing"
    Testing
    $ test -f "build/info.txt"
    ERROR: Job failed: exit code 1
    This is after I have put the artifact and the token has been generated:
    Downloading artifacts for build (257845539)...
    Downloading artifacts from coordinator... ok id=257845539 responseStatus=200 OK token=kJFSWduW
    $ echo "Testing"
    Would you be able to help me figure out why? Thanks!

    • @sowmyaaji309
      @sowmyaaji309 4 роки тому

      @@vdespa Thanks for responding. Sharing the pipeline here:
      This is the valid yml file, same as yours:
      stages:
      - build
      - test
      build:
      stage: build
      script:
      - echo "Building"
      - mkdir build
      - touch build\info.txt
      artifacts:
      paths:
      - build/
      test:
      stage: test
      script:
      - echo "Testing"
      - test -f "build/info.txt"
      The build that passed:
      Running with gitlab-runner 12.1.0-rc1 (6da35412)
      on docker-auto-scale ed2dce3a
      Using Docker executor with image ruby:2.5 ...
      Pulling docker image ruby:2.5 ...
      Using docker image sha256:869f833217cc783f4e2bc309d5eb1d194ca980464a0176e2077f03c95eb72991 for ruby:2.5 ...
      Running on runner-ed2dce3a-project-13457309-concurrent-0 via runner-ed2dce3a-srm-1563931974-7b01e001...
      Fetching changes with git depth set to 50...
      Initialized empty Git repository in /builds/Sowmya-Aji/createpipeline/.git/
      Created fresh repository.
      From gitlab.com/Sowmya-Aji/createpipeline
      * [new branch] master -> origin/master
      Checking out d82a7011 as master...
      Skipping Git submodules setup
      $ echo "Building"
      Building
      $ mkdir build
      $ touch build\info.txt
      Uploading artifacts...
      build/: found 1 matching files
      Uploading artifacts to coordinator... ok id=257845539 responseStatus=201 Created token=kJFSWduW
      Job succeeded
      The test that failed:
      Running with gitlab-runner 12.1.0-rc1 (6da35412)
      on docker-auto-scale 0277ea0f
      Using Docker executor with image ruby:2.5 ...
      Pulling docker image ruby:2.5 ...
      Using docker image sha256:869f833217cc783f4e2bc309d5eb1d194ca980464a0176e2077f03c95eb72991 for ruby:2.5 ...
      Running on runner-0277ea0f-project-13457309-concurrent-0 via runner-0277ea0f-srm-1563933045-a604aa01...
      Fetching changes with git depth set to 50...
      Initialized empty Git repository in /builds/Sowmya-Aji/createpipeline/.git/
      Created fresh repository.
      From gitlab.com/Sowmya-Aji/createpipeline
      * [new branch] master -> origin/master
      Checking out d82a7011 as master...
      Skipping Git submodules setup
      Downloading artifacts for build (257845539)...
      Downloading artifacts from coordinator... ok id=257845539 responseStatus=200 OK token=kJFSWduW
      $ echo "Testing"
      Testing
      $ test -f "build/info.txt"
      ERROR: Job failed: exit code 1
      Can't figure out where it went wrong. Tried it several times, including deleting the .yml file and doing the whole thing again. :( Would appreciate any insights! :D thank you.

    • @sowmyaaji309
      @sowmyaaji309 4 роки тому +1

      @@vdespa you are awesome. I can't believe I missed that one. Works perfectly now. Thank you so much for caring and helping me!

    • @sowmyaaji309
      @sowmyaaji309 4 роки тому

      Would you have a tutorial where the gitlab-ci is running tests on a Docker instance of a website? I've been looking around -- there are examples showing how to run Docker inside the .gitlab-ci.yml file. But I want to run tests, like Selenium for example on a Dockerized instance of a website, like Github or Gitlab itself, and am trying to figure out how to get the yml file to build a Docker instance of a website and run tests on it. It's sort of convoluted! But you make everything sound so simple, I thought I would ask. Thanks!

  • @LarrySiden
    @LarrySiden 2 роки тому

    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.

    • @vdespa
      @vdespa  2 роки тому

      Use the shared runners from GitLab. That is the easiest way to get started.

  • @kosterix123
    @kosterix123 5 років тому

    next time take note of gotchas. Pause a bit longer on the working code (6:01). Otherwise good instruction.

  • @adityapancholi4708
    @adityapancholi4708 4 роки тому

    Hey. I want to know how to setup pipeline for PHP codeigniter project. looking to hear from you.

  • @StEvUgnIn
    @StEvUgnIn 3 роки тому

    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...

    • @vdespa
      @vdespa  3 роки тому

      If you are just learning GitLab CI, use the shared runners that GitLab.com offers.