.
This commit is contained in:
parent
67ba17c9a0
commit
93676f3cbf
44
local/DSRVariables.env
Normal file
44
local/DSRVariables.env
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
###################################################
|
||||||
|
# Modify these values to suit
|
||||||
|
###################################################
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
#SET THESE VARIABLES OR NOTHING WILL WORK!!!!
|
||||||
|
|
||||||
|
export PipelineClientWorkingDir="D:/tsys/@ReachableCEO/DSR-Pipeline-ReachableCEO/local"
|
||||||
|
export StakeholderOutputMarkdownInputFile="$1"
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
##########################################
|
||||||
|
# Layout/title page /formatting options
|
||||||
|
##########################################
|
||||||
|
|
||||||
|
export ReportAuthor="Charles N Wyble"
|
||||||
|
export AuthorTagline="Tenaciy. Velocity. Focus."
|
||||||
|
export AuthorLogo="D:/tsys/@ReachableCEO/ReachableCEO.png"
|
||||||
|
export SourceCode="https://git.knownelement.com/reachableceo/DSR_Pipeline-ReachableCEO"
|
||||||
|
export URLCOLOR="blue"
|
||||||
|
export PAGEBACKGROUND="$PipelineClientWorkingDir/build/background5.pdf"
|
||||||
|
export PANDOC_TEMPLATE="eisvogel"
|
||||||
|
export YamlInputTemplateFileStakeholderOutput="$PipelineClientWorkingDir/build/BuildTemplate-DSR.yml"
|
||||||
|
|
||||||
|
###################################################################
|
||||||
|
# Output Artifact variables
|
||||||
|
###################################################################
|
||||||
|
|
||||||
|
export BUILD_TEMP_DIR="$PipelineClientWorkingDir/build-temp"
|
||||||
|
export BUILD_OUTPUT_DIR="$PipelineClientWorkingDir/build-output"
|
||||||
|
export BUILDYAML_STAKEHOLDER_OUTPUT="$BUILD_TEMP_DIR/DSR.yml"
|
||||||
|
|
||||||
|
export StakeholderOutputMarkdownOutputFile="$BUILD_OUTPUT_DIR/DSR.md"
|
||||||
|
export StakeholderOutputPDFOutputFile="$BUILD_OUTPUT_DIR/DSR.pdf"
|
||||||
|
|
||||||
|
###################################################################
|
||||||
|
# Publish variables
|
||||||
|
###################################################################
|
||||||
|
|
||||||
|
export DISCOURSE_URL="https://community.turnsys.com"
|
||||||
|
export DISCOURSE_API_USERNAME="reachableceo"
|
||||||
|
export DISCOURSE_CATEGORY_ID="61"
|
||||||
|
export DISCOURSE_POST_TITLE="Daily Stakeholder Report"
|
12
local/build/BuildTemplate-DSR.yml
Normal file
12
local/build/BuildTemplate-DSR.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
title: "{{ReportAuthor}} Daily Stakeholder Report : \today"
|
||||||
|
titlepage: true
|
||||||
|
titlepage-logo: "{{CandidateLogo}}"
|
||||||
|
date: \today
|
||||||
|
header-left: "\\hspace{1cm}"
|
||||||
|
header-center: "\\leftmark"
|
||||||
|
header-right: "Page \\thepage"
|
||||||
|
footer-left: "{{ReportAuthor}}"
|
||||||
|
footer-center: "{{AuthorTagline}}"
|
||||||
|
footer-right: "[Pipeline Source code]({{SourceCode}})"
|
||||||
|
urlcolor: {{URLCOLOR}}
|
||||||
|
page-background: "{{PAGEBACKGROUND}}"
|
42
local/build/build-dsr.sh
Normal file
42
local/build/build-dsr.sh
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#!/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 "../DSRVariables.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 StakeholderOutputMarkdownInputFile="$1"
|
||||||
|
|
||||||
|
echo "Cleaning up from previous runs..."
|
||||||
|
|
||||||
|
rm $BUILDYAML_STAKEHOLDER_OUTPUT || true
|
||||||
|
rm $StakeholderOutputMarkdownOutputFile || true
|
||||||
|
rm $StakeholderOutputPDFOutputFile || true
|
||||||
|
|
||||||
|
echo "Combining markdown files into single input file for pandoc..."
|
||||||
|
cat $StakeholderOutputMarkdownInputFile > $StakeholderOutputMarkdownOutputFile
|
||||||
|
|
||||||
|
#Call the build stakeholder output microservice
|
||||||
|
echo "Calling the build stakeholder output microservice..."
|
||||||
|
bash ../../vendor/git.knownelement.com/reachableceo/DSR-Pipeline-Server/build/build-stakeholder-output-server.sh
|
Loading…
Reference in New Issue
Block a user