GitLab CI CD Tutorial For Beginners | GitLab CI To Build A Java Maven Project Using Docker
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- #devops #cicd #gitlab In this video we will learn How to use GitLab CI to build a Java Maven project. This will be a continuation of GitLab CI CD Tutorial For Beginners , and another GitLab CI/CD Examples. If you are looking for tutorial on GitLab CI/CD with Maven and Docker, this is the right place for you.
Key words:
gitlab ci cd demo, gitlab ci/cd pipeline configuration, gitlab ci cd pipeline, gitlab ci cd docker
---------------------------------------------------------------------------
GitLab CICD basics:
• Gitlab CI CD Tutorial ...
---------------------------------------------------------------------------
-------------------------------------------------------------------------
GitLab runners:
• GitLab CI CD Tutorial ...
• GitLab CI CD Tutorial ...
-------------------------------------------------------------------------
------------------------------------------------------------------------
GitLab CICD Pipeline
• GitLab CI CD Tutorial ...
--------------------------------------------------------------------
-------------------------------------------------------------------
GitLab Project link:
gitlab.com/sha...
--------------------------------------------------------------------
==================================
Follow me @:
/ thetips4you
/ @thetips4you
/ thetipsforyou
www.thetips4you...
================================
Music credit: "Royalty Free Music from Bensound"
Please upload a vedio on node js project with gitlab cicd. Although the vedio was very much informative
Sure. Thank you for your suggestion.
Hi shazforiot, Super explaination
Thank you.
How can I add eslint steps to do in testing in gitlab
Hi,
It’s a wonderful explanation and so good for starters but I have a question how the gitlab url communicate with runner installed in some Linux or windows machine is that through the runner registration? If so how shared runner works?
Yes, you need to register runner. Shared runner is from gitlab itself and it picks up the job based on the load and tags you have given.
Thanks for good explanation. Keep it up your good works
Thank you friend for your feedback.
Found it useful. Thanks🙂
Glad it was helpful!
Hi sir, thanks for your useful tutorial. But i just got one question, if i need to include some 3rd party jar in the build process (e.g. ojdbc), how can i do?
Because those jar is not on maven repository which will cause error during build process. Thanks!!
You can download the ojdbc jar and add to local maven repository and then add to pom file. There are lot of internet resource on this, how to do.
Hi , I have a doubt .
1. Why we are creating pipelines ?
2. We will see the output of selenium class files by give run in eclipse , in same way what is the output we will get ? Once the test job is passed, it will automatically launch browser ?
3. What happens all the jobs are passed ? Where the codes are deploying ?
4. Why we using variables in yml file ?
I m new to ci CD concept. Kindly give me a reply .
Since you are new to CICD concept, I would request you to start with the basics in DevOps and GitLab from the basic tutorial.
@@Thetips4you tq 4 d reply
Hi sir. What does the first image keyword signify ? Which image should we give here ?
Yes, image used to run the maven builds and the commands.
Can you point to the video on how to deploy the jar file and build th docker container for this jar file
There are videos on it. Please check the playlist
@@Thetips4you I cant see any video where a java project is deployed being demonstrated.
Hello Sir, how can we implement Sonar on gitlab with maven project?
So that whenever pipelines runs and if sonar fails then fail complete pipeline.
You need to add Sonarqube check in to the pipeline , unfortunately I have not created a video on gitlab ci i believe. It is available for Jenkins in the channel.
@@Thetips4you yes sir i will try the same,thanks
Please update video for specific runnner jobs
Sure. Will plan it in upcoming video's
Hi, Thanks very much for your instructive and useful video.I have a question, which I. appreciate very much, if you can answer it for me. I have a Maven project in Appium, which install app on IOS real device(iPhone) and launch it. I am running this using Eclipse editor, now I want to run it in gitlab CI. According to your instruction, I created .gitlab-ci.yml to be like the following:
stages:
- build
-test
build_jobs:
stage: build
script:
- echo "Maven compile started"
- "mvn compile"
test_jobs:
stage: test
script:
- "mvn test"
I am going to install any necessary component on the new testing machine and avoid using docker image ( as I had on my local Mac machine like Appium server, Maven, Java jdk1.8, also I am staring Appium server programmatically from my test. so there is no problem.)
I am using company gitlab CI, but I do not know how to register a runner or which one to use? So I appreciate very much, if you let me know what I should do, step by step (because I am very new), or if you kindly make a a quick video on that, I would be eternally grateful. Thank you very much
You can refer my video on Gitlab CI in which I have covered on setting up your own runner or use shared runner.
@@Thetips4you Thank you so much for quick reply. I will surely check that.
How can I include sonarqube in the process ?
You can refer my Jenkins pipeline for Sonarqube and use similar approach. The steps will be different, I will check to create a video for Sonarqube and gitlab.
@@Thetips4you I try to find a video that explains how to implement gitlab pipeline with docker maven and sonarqube
Need Full git lab video s can any one help in this
Please check the GitLab Playlist.
where s the docker?
Do you mean where the docker is installed?
@@Thetips4you no, i mean, is the docker inside the gitlab-runner or is it inside the linux server?
@@fkbey5756 You can have gitlab shared runner or your own runner on which docker is installed.
@@Thetips4you I have a vps ubuntu server , and i installed gitlab-runner and docker. ( gitlab-runner is not an docker image, it installed on docker),
but i would like to share my maven java project inside the docker as a image. how can i do it?
You build a docker image using dockerfile if you ant to create a docker image.
Более нудного дикломатора я не встречал... Вам бы в театр читать сказки, а не инструкции создавать
Сожалеем о вашем отзыве.