Releases: jenkinsci/newrelic-insights-plugin
Releases · jenkinsci/newrelic-insights-plugin
Initial Pipeline Support
- Updated Docs
- Documented and tested support for pipeline usage ("basic" step)
Scripted Pipeline
Two options exist for sending data with a custom event in a scripted pipeline.
Key Value Data Points
node {
// assemble key value keyValues points
def secrets = [
[$class: 'KeyValue', key: 'eventType', value: 'test_deployment'],
[$class: 'KeyValue', key: 'appId', value: '888']
]
// call build step with key value keyValues points
step([$class: 'NewRelicInsights',
credentialsId: '291ff5f2-a93f-4d5a-8e56-a43d61475fc7',
keyValues: secrets])
}
Groovy Map
import groovy.json.*;
node {
// a simpler option for pipelines
def json = [eventType: 'test_deployment', appId: '888']
// call build step with json string
step([$class: 'NewRelicInsights',
credentialsId: '291ff5f2-a93f-4d5a-8e56-a43d61475fc7',
json: json])
}
Initial Release
Initial release
- Freestyle support
- Untested pipeline support