This is an example of child pipeline generation on Gitlab
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
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