/seed-dsl.groovy Secret
Last active
September 2, 2016 18:41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GitURL | |
def gitUrl = 'https://github.com/team/myapp' | |
def slackRoom = null | |
job('seed-dsl') { | |
description('This seed is updated from the seed-dsl-updater job') | |
// Comment this out to re-enable job | |
disabled () | |
properties { | |
//Set github project URL | |
githubProjectUrl(gitUrl) | |
} | |
// set project label | |
label('dev') | |
// enable concurrent builds | |
concurrentBuild() | |
// setup to keep x number of builds | |
logRotator { | |
numToKeep(100) | |
} | |
// define notification endpoint | |
notifications { | |
endpoint('http://hubot.example.com/notify/build', 'HTTP', 'JSON') { | |
event('all') | |
timeout(30000) | |
logLines(0) | |
} | |
} | |
// scm git location | |
scm { | |
git { | |
remote { | |
url (gitUrl) | |
branch('master') | |
} | |
} | |
} | |
// triggers to set things in motion | |
triggers { | |
githubPush() | |
} | |
wrappers { | |
timestamps() | |
colorizeOutput('xterm') | |
} | |
// steps to build | |
steps { | |
dsl { | |
external('jobs/*/*.groovy') | |
ignoreExisting(false) | |
removeAction('DELETE') | |
removeViewAction('DELETE') | |
} | |
} | |
// publishers is another name for post build steps | |
publishers { | |
mailer('', false, true) | |
slackNotifier { | |
room(slackRoom) | |
notifyAborted(true) | |
notifyFailure(true) | |
notifyNotBuilt(true) | |
notifyUnstable(true) | |
notifyBackToNormal(true) | |
notifySuccess(false) | |
notifyRepeatedFailure(false) | |
startNotification(false) | |
includeTestSummary(false) | |
includeCustomMessage(false) | |
customMessage(null) | |
buildServerUrl(null) | |
sendAs(null) | |
commitInfoChoice('NONE') | |
teamDomain(null) | |
authToken(null) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment