Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template front end #85

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 27, 2018

  1. First pass at template/generator system for YAML files.

    Example config: (mustache.gocd-yaml-generator.yaml)
    
       generators:
         mustache-inline:
           pattern: '**/*.gocd.mi.yaml'
           script: |
             mustache-inline "{{file}}"
    
    Example input: (test.gocd.mi.yaml)
    
       ---
       branches:
           - name: master
           - name: demo
       ---
       pipelines:
         {{#branches}}
         mcu-firmware.{{name}}:
           group: stuff
           label_template: "mcu-firmware-{{name}}.${COUNT}"
           materials:
             mcu-firmware:
               git: http://my-server/git/mcu-firmware
               branch: {{name}}
           stages:
             - build:
                 clean_workspace: true
                 artifacts:
                  - build:
                      source: out/mcu-firmware-*
                      destination: mcu-firmware
                 tasks:
                  - script: |
                     PATH="/usr/local/crosstool/gcc-arm-none-eabi-7-2018-q2-update/bin:$PATH"
                     sh ./build.sh
         {{/branches}}
    abutcher-gh committed Oct 27, 2018
    Configuration menu
    Copy the full SHA
    9dc190b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6cbd23 View commit details
    Browse the repository at this point in the history