This Coralogix Jenkins plugin adds support for sending job’s console logs & stats and push tags to Coralogix.
hpi
file from GitHub releaseshpi
file in the directory $JENKINS_HOME/plugins
This document includes cluster dependent URL’s. Each URL has a variable part (in Italic). Please match this part with a row entry within the following table. Copy the table row entry located under the column that matches the top level domain of your Coralogix account (.com, .in etc.). Replace the variable part of the URL with this entry.
Region | EU (.com) | IN(.in) | US(.us) |
Cluster URL | coralogix.com | coralogix.us | app.coralogix.in |
Go to Manage Jenkins
, open Configure system
, find Coralogix
section and configure your account private key for sending system/audit/security logs and metrics:
If your Coralogix account top level domain is different than ‘.com’ overwrite the Coralogix API endpoint
value by going to the Advanced...
section and inserting,
https://api.Cluster URL
Before usage you need to create Jenkins credentials with Coralogix private key for your team:
This plugin supports sending build logs and tags pushing both for Freestyle project and Pipelines.
Send your build logs to Coralogix.
Freestyle project
Just check the Send build logs to Coralogix, select Private Key, and provide Application name:
This is the Groovy implementation:
pipeline { agent any stages { stage('Test') { steps { echo "Hello world!" } } } post { always { coralogixSend privateKeyCredentialId: 'coralogix-production', application: 'MyApp', subsystem: "${env.JOB_NAME}", splitLogs: true } } }
Send your pipeline metrics to Coralogix.
This is the Groovy
implementation:
pipeline { agent any stages { stage('Test') { steps { echo "Hello world!" } } } post { always { coralogixMetricsSend privateKeyCredentialId: 'coralogix-production', application: 'MyApp', subsystem: "${env.JOB_NAME}", splitStages: false } } }
Push version tag to Coralogix.
Freestyle project
Add build step Push Coralogix tag and configure:
This is the Groovy
representation of Push Coralogix tag
build step:
pipeline { agent any stages { stage('Test') { steps { echo "Hello world!" } } } post { success { coralogixTag privateKeyCredentialId: 'coralogix-production', tag: '1.0.0', application: 'MyApp', subsystems: [ [name: 'staging'], [name: 'production'] ], icon: 'https://raw.githubusercontent.com/coralogix/jenkins-coralogix-plugin/master/docs/images/logo.svg' } } }
The Coralogix Plugin is licensed under the Apache 2.0 License.