Step1 : Create a Private Repo (CICD) in Gitlab and add a ReadMe.md file. Step2 : Create a new branch(Repositories --> branches-->New...
Step1: Create a Private Repo (CICD) in Gitlab and add a ReadMe.md file.
Step2: Create a new branch(Repositories --> branches-->New branch) called dev1 from main branch and add a new file hello.py.
Step3: Add print("Hello World") in hello.py and commit the changes.
Step4: Add one more file in dev1 branch .gitlab-ci.yml
and add below content in the file
job-to-run:
script:
- python hello.py
Step5: commit the changes will start the cicd pipeline execution.
Step6:- Check Pipeline status viewpipeline or CICD-->Pipeline and CICD->Jobs you can find (job-to-run) job status. It should be passed.
COMMENTS