<commit_before>/*
 * DSL script for Jenkins Bloom GitHub jobs
 */
import utilities.common;
import utilities.Bloom;

/*
 * Definition of jobs
 *
 * NOTE: if you want to rename jobs, rename them in Jenkins first, then change the name here
 * and commit and push the changes.
 */

 for (branchName in ['master', 'Version3.0']) {

	job {
		name "GitHub-Bloom-Wrapper-$branchName-debug";

		description """
<p>Wrapper job for GitHub pull requests of $branchName branch. This job kicks off
several other builds when a new pull request gets created or an existing one updated,
collects the results and reports them back to GitHub.</p>
<p>The job is created by the DSL plugin from <i>BloomGitHubJobs.groovy</i> script.</p>
""";

		parameters {
			stringParam("sha1", "",
				"What pull request to build, e.g. origin/pr/9/head");
		}

		priority(100);

		scm {
			git {
				remote {
					github("BloomBooks/BloomDesktop");
					refspec('+refs/pull/*:refs/remotes/origin/pr/*')
				}
				branch('${sha1}')
			}
		}<commit_msg>Restrict wrapper job to run on linux<commit_after>/*
 * DSL script for Jenkins Bloom GitHub jobs
 */
import utilities.common;
import utilities.Bloom;

/*
 * Definition of jobs
 *
 * NOTE: if you want to rename jobs, rename them in Jenkins first, then change the name here
 * and commit and push the changes.
 */

 for (branchName in ['master', 'Version3.0']) {

	job {
		name "GitHub-Bloom-Wrapper-$branchName-debug";

		description """
<p>Wrapper job for GitHub pull requests of $branchName branch. This job kicks off
several other builds when a new pull request gets created or an existing one updated,
collects the results and reports them back to GitHub.</p>
<p>The job is created by the DSL plugin from <i>BloomGitHubJobs.groovy</i> script.</p>
""";

		parameters {
			stringParam("sha1", "",
				"What pull request to build, e.g. origin/pr/9/head");
		}

		label 'linux';

		priority(100);

		scm {
			git {
				remote {
					github("BloomBooks/BloomDesktop");
					refspec('+refs/pull/*:refs/remotes/origin/pr/*')
				}
				branch('${sha1}')
			}
		}
{'fraction_non_alphanumeric': 0.12397491558128317, 'fraction_numerical': 0.007718282682103232, 'mean_word_length': 3.4506437768240343, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1182698', 'n_tokens_mistral': 761, 'n_tokens_neox': 632, 'n_words': 230}