Easily capture analytics from your CircleCI jobs in your Sumologic dashboard!
To configure the orb follow the instructions in Circle CI for build and deploy docs.
To know more about the parameters and example configuration refer Sumologic Orb documentation.
Add this command to your job with environment, team or service custom-data values as parameters. This command will run with the rest of the commands of the job for sending job log. This command has been introduced so as to send environment, team and service information at job level. If this command is not included at job level in one of it's steps, then the workflow-collector job will send the job log. Using it without the parameters will result in empty custom-data values being sent to Sumo.
Add this job to your workflow with no require statements. This job will run in parallel with the rest of your workflow for monitoring the health of all jobs in the Workflow. It exits when all other jobs have completed. Custom data can be supplied via the custom-data parameter in the form of valid JSON. Keys and values can be supplied literally or as environment variables, though supplying values as additional, nested JSON is not supported. Use timeout-seconds parameter (defaults to 180s/3mins) to end the workflow-collector early when required.
-
brew install yamllint shellcheck
-
Run the validation commands
yamllint ./srccircleci orb validate orb.ymlshellcheck src/scripts/*.sh
Orb in this repository is registered with a namespace in CircleCI already. When any PR is created or any release is created, a job is triggered in CircleCI. To make this job pass successfully you need to follow these steps:
- Create an account in CircleCI using your Sumologic GitHub account.
- Authorize the account to add the SumoLogic organization.
- Generate a CircleCI API token by following the steps here.
- Create a context and name it
orb-publishingand set theCIRCLE_TOKENas an environment variable within this context.
Any job triggered on PR and release creation in CircleCI will run a job orb-tools/publish in CircleCI. This job is responsible for publishing your orb in CircleCI repo, which can be referred by anyone in their CircleCI pipeline. For this job to pass you need to be the owner of the SumoLogic github organization. IT team can be requested for a temporary ownership access. Reference ticket.
The job created by PR creation results in the creation of a temporary dev orb (can be used to provide patch build) and Circle the job created by releaseCI results in an official orb release. Both of such orbs are accessible via a link which can be fetched from orb-tools/publish logs under "Publishing Orb Release" section.