From 6b672228adf0139aa82d2964f5507de7e7fae28b Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Tue, 10 Dec 2024 15:59:37 -0600 Subject: [PATCH] client/server split out stuff --- build/build-pipeline-server.sh | 37 +++++----------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/build/build-pipeline-server.sh b/build/build-pipeline-server.sh index 2b31825..e149b33 100644 --- a/build/build-pipeline-server.sh +++ b/build/build-pipeline-server.sh @@ -1,32 +1,5 @@ #!/usr/bin/env bash - -#################################################### -#DO NOT CHANGE ANYTHING BELOW THIS LINE -#################################################### - -############################################################ -# Setup globals -############################################################ - -readonly MO_PATH="bash ../vendor/git.knownelement.com/ExternalVendorCode/mo/mo" -readonly BUILD_OUTPUT_DIR="../build-output" -readonly BUILD_TEMP_DIR="../build-temp" -readonly BUILDYAML_JOBBOARD="$BUILD_TEMP_DIR/JobBoard.yml" -readonly BUILDYAML_CLIENTSUBMISSION="$BUILD_TEMP_DIR/ClientSubmission.yml" -readonly BUILDYAML_CANDIDATEINFOSHEET="$BUILD_TEMP_DIR/CandidateInfoSheet.yml" - -CandidateInfoSheetMarkdownOutputFile="$BUILD_OUTPUT_DIR/CandidateInfoSheet.md" -CandidateInfoSheetPDFOutputFIle="$BUILD_OUTPUT_DIR/CandidateInfoSheet.pdf" - -JobBoardMarkdownOutputFile="$BUILD_OUTPUT_DIR/job-board/Resume.md" -JobBoardPDFOutputFile="$BUILD_OUTPUT_DIR/job-board/Resume.pdf" -JobBoardMSWordOutputFile="$BUILD_OUTPUT_DIR/job-board/Resume.doc" - -ClientSubmissionMarkdownOutputFile="$BUILD_OUTPUT_DIR/client-submission/Resume.md" -ClientSubmissionPDFOutputFile="$BUILD_OUTPUT_DIR/client-submission//Resume.pdf" -ClientSubmissionMSWordOutputFile="$BUILD_OUTPUT_DIR/client-submission/Resume.doc" - echo "Cleaning up from previous runs..." rm $BUILDYAML_CANDIDATEINFOSHEET @@ -45,18 +18,18 @@ rm $ClientSubmissionMSWordOutputFile # Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts -$MO_PATH ./BuildTemplate-CandidateInfoSheet.yml > $BUILDYAML_CANDIDATEINFOSHEET -$MO_PATH ./BuildTemplate-JobBoard.yml > $BUILDYAML_JOBBOARD -$MO_PATH ./BuildTemplate-ClientSubmission.yml > $BUILDYAML_CLIENTSUBMISSION +$MO_PATH $(PipelineClientWorkingDir)/build/BuildTemplate-CandidateInfoSheet.yml > $BUILDYAML_CANDIDATEINFOSHEET +$MO_PATH $(PipelineClientWorkingDir)/build/BuildTemplate-JobBoard.yml > $BUILDYAML_JOBBOARD +$MO_PATH $(PipelineClientWorkingDir)/build/BuildTemplate-ClientSubmission.yml > $BUILDYAML_CLIENTSUBMISSION echo "Creating candidate info sheet..." -$MO_PATH ../Templates/CandidateInfoSheet/CandidateInfoSheet.md > $CandidateInfoSheetMarkdownOutputFile +$MO_PATH $(WorkingDirBase)../Templates/CandidateInfoSheet/CandidateInfoSheet.md > $CandidateInfoSheetMarkdownOutputFile pandoc \ "$CandidateInfoSheetMarkdownOutputFile" \ --template eisvogel \ ---metadata-file="../build-temp/CandidateInfoSheet.yml" \ +--metadata-file="$(WorkingDirBase)../build-temp/CandidateInfoSheet.yml" \ --from markdown \ --to=pdf \ --output $CandidateInfoSheetPDFOutputFIle