<commit_before>/*
 * Copyright (c) 2016-2018 SIL International
 * This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
 */

// *********************************************************************************************
multibranchPipelineJob('icu-dotnet') {
	description '''<p>Builds of icu-dotnet</p>
<p>The job is created by the DSL plugin from <i>LibraryJobs.groovy</i> script.</p>'''

	branchSources {
		github {
			id('icu-dotnet')
			repoOwner('sillsdev')
			repository('icu-dotnet')
			scanCredentialsId('github-sillsdevgerrit')
			buildOriginBranch(true)
			buildOriginBranchWithPR(false)
			buildOriginPRMerge(true)
			buildForkPRMerge(true)
		}

		orphanedItemStrategy {
			discardOldItems {
				numToKeep(10)
			}
		}
	}
}

// *********************************************************************************************
multibranchPipelineJob('icu4c') {
	description '''<p>Builds of ICU4C nuget packages</p>
<p>The job is created by the DSL plugin from <i>LibraryJobs.groovy</i> script.</p>'''

	branchSources {
		github {
			id('icu4c')
			repoOwner('sillsdev')
			repository('icu4c')
			scanCredentialsId('github-sillsdevgerrit')
			buildOriginBranch(true)
			buildOriginBranchWithPR(false)
			buildOriginPRMerge(true)
			buildForkPRMerge(true)
		}

		orphanedItemStrategy {
			discardOldItems {
				numToKeep(10)
			}
		}
	}
}

// *********************************************************************************************
multibranchPipelineJob('SIL.BuildTasks') {
	description '''<p>Builds of SIL.BuildTasks</p>
<p>The job is created by the DSL plugin from <i>LibraryJobs.groovy</i> script.</p>'''

	branchSources {
		github {
			id('SIL.BuildTasks')
			repoOwner('sillsdev')
			repository('SIL.BuildTasks')
			scanCredentialsId('github-sillsdevgerrit')
			buildOriginBranch(true)
			buildOriginBranchWithPR(false)
			buildOriginPRMerge(true)
			buildForkPRMerge(true)
		}

		orphanedItemStrategy {
			discardOldItems {
				numToKeep(10)
			}
		}
	}
}<commit_msg>Use loop to create library jobs<commit_after>/*
 * Copyright (c) 2016-2018 SIL International
 * This software is licensed under the MIT license (http://opensource.org/licenses/MIT)
 */

for (repo in ['icu-dotnet', 'icu4c', 'SIL.BuildTasks']) {
	multibranchPipelineJob(repo) {
		description """<p>Builds of ${repo}</p>
	<p>The job is created by the DSL plugin from <i>LibraryJobs.groovy</i> script.</p>"""

		branchSources {
			github {
				id(repo)
				repoOwner('sillsdev')
				repository(repo)
				scanCredentialsId('github-sillsdevgerrit')
				buildOriginBranch(true)
				buildOriginBranchWithPR(false)
				buildOriginPRMerge(true)
				buildForkPRMerge(true)
			}

			orphanedItemStrategy {
				discardOldItems {
					daysToKeep(60)
					numToKeep(10)
				}
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.2164874551971326, 'fraction_numerical': 0.011111111111111112, 'mean_word_length': 4.661257606490873, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1327717', 'n_tokens_mistral': 1070, 'n_tokens_neox': 898, 'n_words': 160}