AWS CodePipeline is a continuous delivery service you can use to model, visualize, and
automate the steps required to release your software. You can quickly model and configure
the different stages of a software release process.
Steps
Setting up the Stage
Step 1
- Access your CodePipeline from aws and click on Edit
- Click on Add stage
- Set the name as beagle-test-trigger
- Click Add action group on beagle-test-trigger
- Set Action name to test-trigger
- Set Action Provider as AWS CodeBuild
- Set Input Artifacts
- At Project Name click on Create Project
- On Environment set Environment Image to Custom Image
- Set Environment type to Linux
- Set Image Registry to Other Registry
- Set External registry URL to beaglesecurity/beagle-test-trigger-common
- In Additional Configurations Set Environment Variables ACCESS_TOKEN and APPLICATION_TOKEN, to do so click on create parameter -> set name ACCESS_TOKEN value as your access token generated from beagle. Repeat the same for APPLICATION_TOKEN. Now the value field of enviroment will be loaded with parameter reference. Name them as ACCESS_TOKEN and APPLICATION_TOKEN in their respective Name fields
- In Build Spec select Insert Build Commands, At build commands type trigger-test
- Set your log preference and click on Continue to CodePipeline
- Click Done
- Now when you build the CodePipeline the beagle-test-trigger stage will be invoked and your test will be automatically triggered!
Walkthrough