2019-03-28 11:32:49 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if ! test -f yaml-config-plugin-0.9.0.jar; then
|
|
|
|
wget https://github.com/tomzo/gocd-yaml-config-plugin/releases/download/0.9.0/yaml-config-plugin-0.9.0.jar
|
|
|
|
fi
|
|
|
|
|
2019-03-27 14:36:11 +01:00
|
|
|
for file in *.erb; do
|
|
|
|
erb -T - $file > $(basename $file .erb)
|
|
|
|
done
|
2019-03-28 11:32:49 +01:00
|
|
|
|
|
|
|
for file in *.gocd.yaml; do
|
|
|
|
java -jar yaml-config-plugin-0.9.0.jar syntax $file
|
|
|
|
done
|