Pipeline Trigger
Introduction
The Pipeline Trigger is the first pillar of creation and is responsible for initiating the pipeline when new code is committed to the repository and collecting the necessary dependencies.
Using the Pipeline
Step 1: Set up the Pipeline Configuration
To use the Pillars of Creation, follow the steps below to add the configuration to your project’s CI settings:
-
Go to your project's settings, and select CI/CD.
-
Expand General pipelines.
-
In the CI/CD configuration file field, enter the following path:
pipeline/pipeline.yaml@getting-started/pillars/pipeline:main
-
Select save changes.
Step 2: Trigger the Pipeline
You can trigger the pipeline by creating a branch, pushing changes, and creating a merge request. The pipeline will automatically execute the defined stages and jobs.
-
Create a new branch:
git checkout -b <branch-name>
-
Make changes to your code, commit them, and push the branch to GitLab:
git add .
git commit -m "Add new feature"
git push origin <branch-name> -
Create a merge request (MR) by navigating to the repository in GitLab and selecting Merge request. This will initiate the pipeline for the changes in the MR.