Setup GitLab CI/CD Pipeline for Maven Project | Java

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • This video shows how to integrate maven project and execute web automated tests into GitLab CI/CD pipelines.
    Docker Image: hub.docker.com...
    WebDriverManager Tutorial: • WebDriverManager Tutor...
    Source code: github.com/raz...

Komentáře • 33

  • @yogeshdharya3857
    @yogeshdharya3857 Před 2 lety

    Quite a basic tutorial to understand something like CI/CD which is so widely used out there in the industries.Thank you so much Mr.Razwan for making CI/CD easy to understand.

  • @jesusangeles7978
    @jesusangeles7978 Před 2 lety +1

    Excellent! Perfect for a Java developer but beginner in Gitlab pipeline scripting. Thanks Razvan Vancea!

  • @SingaporeSinnodu
    @SingaporeSinnodu Před 2 lety +1

    The build and test jobs are downloading the docker images twice, instead we can use the cache feature of gitlab to make the pipeline run faster

    • @LearnwithRV
      @LearnwithRV  Před 11 měsíci

      Agree, thank you for this insight! 🙏🏻

  • @madhuvanthisridhar5965

    Thank you for this helpful tutorial!

  • @travelvlogs9050
    @travelvlogs9050 Před měsícem

    Hello , I need one information, The docker container which you are using , is it in linux os or windows os ??

  • @Gorky25
    @Gorky25 Před 3 lety +1

    Hi,
    can we achieve the same but without Docker image?
    I want only to run maven project (with selenium test). What script do I have to type in .yml file?

    • @razvanv339
      @razvanv339 Před 3 lety +1

      Hello,
      As far as I know, there is no way building CI/CD without docker image. I am curious, why would you want NOT to use it?
      PS: the example used in the video is a maven project with selenium test - you can use the same .yml file
      Have a great day,
      RV

  • @sreereshvkm726
    @sreereshvkm726 Před 2 lety

    Thanks for the video. Can you please tell me, in which machine these build and test jobs are executed?

  • @sangameshbn5659
    @sangameshbn5659 Před 3 lety +1

    Want to run the same in a browser mode since my tests are taking pictures ( which won't work in headless mode on ) will this work ?

    • @debamdas6809
      @debamdas6809 Před rokem

      even in headless mode selenium and other frameworks can take snapshots.
      add logic so that for each testcase failure it would take snaps and add that as artifact

  • @gauridhanubansode9875
    @gauridhanubansode9875 Před 3 lety +1

    Hi, very nice explanation. But one question, my script fails but still pipeline is not failing. What to do?

    • @razvanv339
      @razvanv339 Před 3 lety

      Hello, thanks for your feedback! It's been a while since I stopped coding with Java, but I am almost sure that a solution to your problem implies adding a setting/config in the pom.xml file

  • @babyblooms5781
    @babyblooms5781 Před 3 lety

    how can do the same appium automation using my own runner in git lab

  • @harishravichandran9481

    can u help me how to build cicd pipeline to deploy spring boot app in gitlab

  • @martijnhiemstra
    @martijnhiemstra Před 3 lety

    Could you explain how to deploy to the local package registry because I haven't found a single explanation on the internet on how to do this

  • @kimferko9038
    @kimferko9038 Před 3 lety

    Hi, how would you create an Automated CI/CD Pipeline in Jenkins with Java 14
    or later using Selenium Webdriver in a Maven Project with TestNG?
    Am Not interested on how to setup Jenkins with Java 8 or 11!

  • @gnanarajasekar1055
    @gnanarajasekar1055 Před 2 lety

    can you pls explain y specifically headless browser used? is that gitlab does not support normal browser GUI?

    • @LearnwithRV
      @LearnwithRV  Před 11 měsíci

      Yes, the CI/CD envs are usually non-gui environments and it is a good practice to use headless mode

  • @suhadisuhadi3229
    @suhadisuhadi3229 Před 3 lety

    i have one question, in the gitlab pipeline, is possible to automate application with localhost url?

    • @LearnwithRV
      @LearnwithRV  Před 3 lety

      Hello, thanks for your comment!
      The answer is yes, it is possible, but it requires more advanced DevOps skills. Basically, you have to run the local application in other docker containers that are linked to the tests, so they can access/use that localhost during the execution time

  • @sreenivasarajuguduru5729

    If pom.xml file is in nested folder then how can we build?

    • @LearnwithRV
      @LearnwithRV  Před 3 lety +1

      in the 'script' area you can use the basic linux 'cd' command (changing the directory accordingly to the pom.xml folder) just before you run any 'mvn' command
      Example:
      test:
      script:
      - cd ../anotherfolder && mvn clean test

    • @sreenivasarajuguduru5729
      @sreenivasarajuguduru5729 Před 3 lety

      @@LearnwithRV thanks for the reply 👌

  • @WorldeFUN
    @WorldeFUN Před 3 lety

    Thank you. great explanation, How we can achieve same without webdriver manager?

    • @razvanv339
      @razvanv339 Před 3 lety

      Thanks for your feedback! The pipeline process remains the same no matter if we use the webdriver manager or the classic webdriver file approach. Keep in mind that if you decide to use the classic approach, make sure that you include the chromedriver file in your project and set a relative path. This video might help you out czcams.com/video/D5YAAPmfc_A/video.html

  • @darktjeAI
    @darktjeAI Před 3 lety

    My test fails why