Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

Add config setters #42

Closed
wants to merge 3 commits into from
Closed

Conversation

jniesen
Copy link
Contributor

@jniesen jniesen commented Apr 18, 2016

I wanted a way to configure the plugin from a Groovy script. Having this would make allow me to create a Groovy init script for use with the official Jenkins Docker image.

The changes included in these commits will allow you to configure the plugin like so:

import jenkins.model.*
import org.datadog.jenkins.plugins.datadog.DatadogBuildListener

def j = Jenkins.getInstance()
def d = j.getDescriptor("org.datadog.jenkins.plugins.datadog.DatadogBuildListener")
d.setHostname('https://foo.bar.com')
d.setTagNode(true)
d.setApiKey('abc123')
d.setBlacklist('job1,job2,,job3 , job4')
d.save()

@JohnLZeller
Copy link
Contributor

Hey @jniesen, great idea! I'll take a look at this, and get you some feedback :) Thanks again

@JohnLZeller JohnLZeller added this to the Next milestone Apr 21, 2016
@JohnLZeller JohnLZeller self-assigned this Apr 21, 2016
@JohnLZeller JohnLZeller force-pushed the master branch 2 times, most recently from 8fcc9dd to 194b04d Compare May 24, 2016 14:59
@JohnLZeller
Copy link
Contributor

Rebased here: #64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants