DSR-Pipeline-Server/build/build-stakeholder-output-server.sh

20 lines
516 B
Bash
Raw Normal View History

2024-12-15 05:03:27 +00:00
#!/bin/bash
2024-12-15 05:26:06 +00:00
set -euo pipefail
# Expand variables into rendered YAML files. These will be used by pandoc to format the output artifacts
2024-12-15 16:19:20 +00:00
$MO_PATH $YamlInputTemplateFileStakeholderOutput > $BUILDYAML_STAKEHOLDER_OUTPUT
2024-12-15 05:03:27 +00:00
echo "Creating stakeholder report..."
2024-12-15 23:12:12 +00:00
cd "$(dirname $StakeholderOutputMarkdownInputFile)"
2024-12-15 05:03:27 +00:00
pandoc \
"$StakeholderOutputMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_STAKEHOLDER_OUTPUT" \
--from markdown \
--to=pdf \
2024-12-15 23:12:12 +00:00
--output $StakeholderOutputPDFOutputFile
cd -