Compare commits

...

2 Commits

Author SHA1 Message Date
10d8ef5b9c . 2024-12-14 23:22:09 -06:00
5ddf70eec5 . 2024-12-14 23:22:04 -06:00

View File

@@ -1,14 +1,16 @@
#!/bin/bash #!/bin/bash
set -euo pipefail
# This is a demo script for the DSR-Pipeline-Server # This is a demo script for the DSR-Pipeline-Server
# This script creates PDF output from markdown input # This script creates PDF output from markdown input
############################################ ###############@##################################
#Edit this file to reflect your information #Edit the below file to reflect your information
############################################ ##################################################
source "./StakeholderProductVariables.env" source "./StakeholderOutputVariables.env"
#################################################### ####################################################
#################################################### ####################################################
@@ -18,9 +20,9 @@ source "./StakeholderProductVariables.env"
#################################################### ####################################################
#################################################### ####################################################
###################################################################################### ############################################################################################
# Setup key variables that will be used by the build-pipeline-server-markdown.sh script # Setup key variables that will be used by the create-stakeholder-output-server.sh script
###################################################################################### ############################################################################################
export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo" export MO_PATH="bash ../../vendor/git.knownelement.com/ExternalVendorCode/mo/mo"
@@ -31,6 +33,7 @@ export BUILDYAML_STAKEHOLDER_OUTPUT="$BUILD_TEMP_DIR/StakeholderOutput.yml"
export StakeholderOutputMarkdownOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.md" export StakeholderOutputMarkdownOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.md"
export StakeholderOutputPDFOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.pdf" export StakeholderOutputPDFOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.pdf"
export StakeholderOutputMarkdownInputFile="$1"
echo "Cleaning up from previous runs..." echo "Cleaning up from previous runs..."
@@ -38,4 +41,10 @@ rm $BUILDYAML_STAKEHOLDER_OUTPUT
rm $StakeholderOutputMarkdownOutputFile rm $StakeholderOutputMarkdownOutputFile
rm $StakeholderOutputPDFOutputFile rm $StakeholderOutputPDFOutputFile
echo "Combining markdown files into single input file for pandoc..."
cat $StakeholderOutputMarkdownInputFile > $StakeholderOutputMarkdownOutputFile
#Call the build stakeholder output microservice
bash ../../vendor/git.knownelement.com/reachableceo/DSR-Pipeline-Server/build/build-stakeholder-output-server.sh bash ../../vendor/git.knownelement.com/reachableceo/DSR-Pipeline-Server/build/build-stakeholder-output-server.sh