Created
May 31, 2017 17:41
-
-
Save harlowja/d8dfaa6938694454432037d1e651bad6 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
// Build | |
for(int i = 0; i < projects.size(); i++) { | |
def project = projects.get(i) | |
def jenkins_job = [:] | |
jenkins_job['build_number'] = env.BUILD_NUMBER | |
jenkins_job['build_tag'] = env.BUILD_TAG | |
jenkins_job['build_url'] = env.BUILD_URL | |
jenkins_job['build_name'] = env.BUILD_NAME | |
jenkins_job['build_id'] = env.BUILD_ID | |
def project_details = projects_details[project] | |
def project_params = projects_params[project] | |
def project_clones = projects_clones[project] | |
jenkins_job["project"] = [:] | |
for(k in new ArrayList(project_details.keySet())) { | |
def tmp_k = canonName(k) | |
jenkins_job['project'][tmp_k] = project_details[k] | |
} | |
def run_details = projects_run_details[project] | |
jenkins_job['run'] = [:] | |
for(k in new ArrayList(run_details.keySet())) { | |
def tmp_k = canonName(k) | |
jenkins_job['run'][tmp_k] = run_details[k] | |
} | |
jenkins_job["tweaks"] = [:] | |
def tweaks = project_params.tweaks | |
for(k in new ArrayList(tweaks.keySet())) { | |
def tmp_k = canonName(k) | |
jenkins_job['tweaks'][tmp_k] = tweaks[k] | |
} | |
def stash_to_dir_names = [ | |
"requirements": "requirements", | |
"dirty": project, | |
] | |
def images = buildKollaImages(project, project_details, | |
project_params.maintainers, | |
jenkins_job, project_clones.stashes, | |
stash_to_dir_names, | |
project_params.image_namespace, | |
tweaks.venv_py_version, | |
tweaks.custom_template_overrides, | |
tweaks.extra_python_requirements, | |
creds.pypi) | |
projects_images[project] = images | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment