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(): |
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
class PipelineWriter: | |
@staticmethod | |
def parent_job_template(): | |
parent_job_template = """ | |
stages: | |
- build-libs | |
.basic: | |
interruptible: false | |
allow_failure: false |
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
stages: | |
- child-pipeline-generator | |
- child-pipeline-trigger | |
generate-child-pipeline: | |
stage: child-pipeline-generator | |
image: python:3.9-slim-buster | |
script: | |
- python3 main.py | |
artifacts: |