Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:git:sonar:pipetrigger [2022/05/09 11:42] – created mbdev:git:sonar:pipetrigger [2022/05/09 12:22] (current) – [Usage] mb
Line 1: Line 1:
-====== Pipelinetriggers ====== +====== Pipeline triggers ====== 
- +Pipeline triggers can be used to start a pipeline via command-line. Triggers will refer to the last commit and are configured in single projects.    
-===== Headline ===== +   
 +===== Configuration ===== 
 +To add pipeline triggers for a project, go to project -> settings -> ci/cd -> Pipeline triggers.   
 +Type in a name for this trigger token and press "add trigger". Remember: the created token refers to your user.   
 +{{ :dev:git:sonar:trigger_configuration.png?direct&600 |}} 
 +===== Usage ===== 
 +As mentioned, triggers can be sent via command-line (curl) as well as with postman. Postman serves a better overview of variables and authentication. For authentication the created token is used.   
 +It is also possible to send variables to start specific jobs, even $CI variables can be overwritten, at least for usage within the pipeline. E.g.: the variable CI_COMMIT_MESSAGE is used to start a job and can be set to the necessary value to perform a job.     
 +{{ :dev:git:sonar:trigger_usage_postman.png?direct&600 |}}