Jenkins CICD Pipeline Tutorial for Python Project

preview_player
Показать описание
I've 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.

Installation with Docker
Install Docker on your local machine.
Run this command: docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts-jdk11
Write down the password that's created for you during this first time set up process: like AdminPassword
Go to localhost:8080 and you should be prompted for this password
Run command: docker exec -it -u 0 containerID /bin/bash to open an interactive terminal within the Docker Container as root (user 0)
Run command: apt-get update and apt-get install python3 and apt-get install python3-pip to install Python3 and pip within the Docker container
Run pip install pytest to install the pytest package that actually runs the unit tests during your test stage within the pipeline
Рекомендации по теме
Комментарии
Автор

As i'm a beginner i'm unable to understand what he was saying.. plz take a video from basic things becoz it will be helpful for beginners like me..

fakeyzz
Автор

not worth it all... as when you teach, teach from basics tooo.... so just giving you genuine feedback by disliking your post.

mani_a_g
join shbcf.ru