Last active
March 24, 2019 22:13
-
-
Save halkeye/0aa9da994def8913b2abc8986dee6c58 to your computer and use it in GitHub Desktop.
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
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