.
This commit is contained in:
		
							
								
								
									
										50
									
								
								local/build/build-stakeholder-output-client.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								local/build/build-stakeholder-output-client.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,50 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
set -euo pipefail
 | 
			
		||||
 | 
			
		||||
# This is a demo script for the DSR-Pipeline-Server
 | 
			
		||||
# This script creates PDF output from markdown input
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
###############@##################################
 | 
			
		||||
#Edit the below file to reflect your information
 | 
			
		||||
##################################################
 | 
			
		||||
 | 
			
		||||
source "./StakeholderOutputVariables.env"
 | 
			
		||||
 | 
			
		||||
####################################################
 | 
			
		||||
####################################################
 | 
			
		||||
####################################################
 | 
			
		||||
#DO NOT CHANGE ANYTHING BELOW THIS LINE
 | 
			
		||||
####################################################
 | 
			
		||||
####################################################
 | 
			
		||||
####################################################
 | 
			
		||||
 | 
			
		||||
############################################################################################
 | 
			
		||||
# 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 BUILD_TEMP_DIR="$PipelineClientWorkingDir/build-temp"
 | 
			
		||||
export BUILD_OUTPUT_DIR="$PipelineClientWorkingDir/build-output"
 | 
			
		||||
 | 
			
		||||
export BUILDYAML_STAKEHOLDER_OUTPUT="$BUILD_TEMP_DIR/StakeholderOutput.yml"
 | 
			
		||||
export StakeholderOutputMarkdownOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.md"
 | 
			
		||||
export StakeholderOutputPDFOutputFile="$BUILD_OUTPUT_DIR/StakeholderOutput.pdf"
 | 
			
		||||
 | 
			
		||||
export StakeholderOutputMarkdownInputFile="$1"
 | 
			
		||||
 | 
			
		||||
echo "Cleaning up from previous runs..."
 | 
			
		||||
 | 
			
		||||
rm $BUILDYAML_STAKEHOLDER_OUTPUT
 | 
			
		||||
rm $StakeholderOutputMarkdownOutputFile
 | 
			
		||||
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
 | 
			
		||||
		Reference in New Issue
	
	Block a user