Jenkins Python Pipeline Tutorial
Ғылым және технология
I walk through the full process of setting up Jenkins to create a CICD pipeline for your Python projects and perform automated tests on commits that come into a Github repo. I also show how to use Docker to quickly and easily install and run a Jenkins container. I go through preparing the Jenkins Docker container to enable Jenkins build and test your code successfully.
Link to the commands and Jenkins Pipeline script (Jenkinsfile) used in this video: github.com/vastevenson/jenkin...
Пікірлер: 43
You saved my ass at university - thank you. Just to mention for other people - I have been looking for a normal tutorial with explanation regarding jenkins and python installation in it over 3 days. This man saved my ass. Once again - thank's a lot!
Explanation of the docker run command used on the start of the video: docker run: This command is used to run a Docker container. -p 8080:8080 -p 50000:50000: These options define port mappings between the host machine and the container. In this case, it maps port 8080 of the host to port 8080 of the container, and port 50000 of the host to port 50000 of the container. This allows you to access the services exposed on these ports from your host machine. -v jenkins_home:/var/jenkins_home: This option specifies a volume mapping between the host machine and the container. It creates a named volume called "jenkins_home" and maps it to the "/var/jenkins_home" directory inside the container. This volume is used to persist Jenkins data, such as job configurations, plugins, and other data that needs to be preserved even if the container is restarted or removed. jenkins/jenkins:lts-jdk11: This specifies the Docker image to run. It pulls the "jenkins" image from the Docker Hub repository, with the "lts-jdk11" tag. This image contains the Jenkins CI/CD platform with JDK 11. So, when you execute the command, Docker will run a container based on the "jenkins/jenkins:lts-jdk11" image. The container will have its ports 8080 and 50000 mapped to the corresponding ports on the host machine, allowing you to access the Jenkins web interface and Jenkins agent communication on those ports. Additionally, the "jenkins_home" volume is created to store persistent Jenkins data.
@stephanieezat-panah7750
10 ай бұрын
this is great. thank you
Such a great video. I love the way you walked us through the actual process.
Great tutorial! Looked everywhere for a quick straightforward video on this
That was a really well thought out tutorial with great commentary!
such a nice detailed video, i am able to run my git file using Jenkins. Thanks!!
It helps me solve python not found issue. Great video and much thanks! :)
Thank you for sharing, Vincent! really helpful!
thank you very much in great detail. This is the only video that helped me very good. Thank you author
Its really helpful ♥️, keep more doing on automation testing with python pytest.
awesome tutorial Vincent!!
thanks for making this video, really needed it.
Very well explained bud.
Hi Vincent , please tell me ,if threre are sub directory in git repo then how to traverse through that dirctory while running it through pipeline
Great tutorial mate! Thanks a lot!
Awesome Video Sir. 👏👏
You save my day :)
Thank you for its enjoyeble to learn from you.
Thanks for the effort 👍🏻
Good content vincent . Thanks
@ytg6663
Жыл бұрын
Ohh
Great vedio Vincent
Thank you for this.
Nice one thank you!
Appreciate this :)
We already checked out the git repository in first stage, so why we have to specify git branch command in the second stage again? What is its purpose please?
@KrishnaPrasad8357
Ай бұрын
I have the same question. Did you figure it out?
You saved me, thanks
Cool, thanks a lot!
Thank you sir
Спасибо, мужик. Очень толково
It's great.. Thanks...
Thanks!!
I noticed that there is no .git directory in the zip file that I downloaded. I am confused. please explain
@brutely9718
2 ай бұрын
It's hidden
GoodJob,Thanks bro
Great Tutorial. Could please also explain how to set up this pipeline without the need of docker?
@stephanieezat-panah7750
10 ай бұрын
yes please, and thank you
@commonman5768
10 ай бұрын
Just use pip package dependency war file which holds all dependency to run python project
@commonman5768
10 ай бұрын
Just use pip package dependency war file which holds all dependency to run python project
Help! I use port 8080 for Apache Tomcat. what to do?? An update: I uninstalled Tomcat and reran the command. All was well and I was able to continue. thank you. This has been a fabulous video. You have saved me.
Wena choro