Skip to content

Instantly share code, notes, and snippets.

@halkeye
Last active March 24, 2019 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halkeye/0aa9da994def8913b2abc8986dee6c58 to your computer and use it in GitHub Desktop.
Save halkeye/0aa9da994def8913b2abc8986dee6c58 to your computer and use it in GitHub Desktop.
folder('github_projects') {
['nfg', 'aliaoca', 'authorized', 'authenticated'].each {
permission("Jenkins.READ", it.name)
permission("hudson.model.Item.READ", it.name)
permission("hudson.model.Item.DISCOVER", it.name)
}
displayName('Github Projects')
description('All the github projects')
}
def githubProjects = [
'halkeye/bamboohr-employee-stats',
'halkeye/codacy-maven-plugin',
'halkeye/flask_atlassian_connect',
'halkeye/gavinmogan.com',
'halkeye/get_groups',
'halkeye/git-version-commits',
'halkeye/go_windows_stats',
'halkeye/graphite_scripts',
'halkeye/halkeye-ansible',
'halkeye/helm-repo-html',
'halkeye/http_bouncer_client',
'halkeye/http_bouncer_server',
'halkeye/hubot-brain-redis-hash',
'halkeye/hubot-confluence-search',
'halkeye/hubot-jenkins-notifier',
'halkeye/hubot-regex',
'halkeye/hubot-sonarr',
'halkeye/hubot-url-describer',
'halkeye/infinicatr',
'halkeye/minecraft.gavinmogan.com',
'halkeye/proxy-s3-google-oauth',
'halkeye/react-book-reader',
'halkeye/release-dashboard',
'halkeye/slack-foodee',
'halkeye/soundboard',
'halkeye/www-gavinmogan-com',
'halkeye/discorse-docker-builder',
];
githubProjects.each {
multibranchPipelineJob('github_projects/www-gavinmogan-com') {
branchSources {
github {
scanCredentialsId('github-halkeye')
// repoOwner(it.name.tokenize("/")[0])
repoOwner("halkeye")
// repository(it.name.tokenize("/")[1])
repository("www-gavinmogan-com")
}
}
orphanedItemStrategy {
discardOldItems {
numToKeep(5)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment