Skip to content

Instantly share code, notes, and snippets.

@andrasKelle
Created Sep 21, 2021
Embed
What would you like to do?
This is an example of child pipeline generation on Gitlab
import os
from PipelineWriter import PipelineWriter
def get_libs():
libs_path = "lib/java"
libs = os.listdir(libs_path)
return libs
def generator():
with open('child-pipeline-gitlab-ci.yml', 'w+') as f:
f.write(PipelineWriter.parent_jobs_template())
for lib in get_libs():
f.write(PipelineWriter.child_pipeline_job_template(lib))
if __name__ == "__main__":
generator()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment