True client/server refactor .
This commit is contained in:
parent
5c63ee2049
commit
c5b5557270
@ -2,19 +2,19 @@
|
|||||||
|
|
||||||
echo "Cleaning up from previous runs..."
|
echo "Cleaning up from previous runs..."
|
||||||
|
|
||||||
rm $BUILDYAML_CANDIDATEINFOSHEET
|
rm "$BUILDYAML_CANDIDATEINFOSHEET"
|
||||||
rm $CandidateInfoSheetMarkdownOutputFile
|
rm "$CandidateInfoSheetMarkdownOutputFile"
|
||||||
rm $CandidateInfoSheetPDFOutputFIle
|
rm "$CandidateInfoSheetPDFOutputFIle"
|
||||||
|
|
||||||
rm $BUILDYAML_JOBBOARD
|
rm "$BUILDYAML_JOBBOARD"
|
||||||
rm $JobBoardMarkdownOutputFile
|
rm "$JobBoardMarkdownOutputFile"
|
||||||
rm $JobBoardPDFOutputFile
|
rm "$JobBoardPDFOutputFile"
|
||||||
rm $JobBoardMSWordOutputFile
|
rm "$JobBoardMSWordOutputFile"
|
||||||
|
|
||||||
rm $BUILDYAML_CLIENTSUBMISSION
|
rm "$BUILDYAML_CLIENTSUBMISSION"
|
||||||
rm $ClientSubmissionMarkdownOutputFile
|
rm "$ClientSubmissionMarkdownOutputFile"
|
||||||
rm $ClientSubmissionPDFOutputFile
|
rm "$ClientSubmissionPDFOutputFile"
|
||||||
rm $ClientSubmissionMSWordOutputFile
|
rm "$ClientSubmissionMSWordOutputFile"
|
||||||
|
|
||||||
#####################################################################################################
|
#####################################################################################################
|
||||||
#Markdown to PDF/MSWord Resumek and candidate info sheet
|
#Markdown to PDF/MSWord Resumek and candidate info sheet
|
||||||
@ -22,13 +22,13 @@ rm $ClientSubmissionMSWordOutputFile
|
|||||||
|
|
||||||
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
|
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
|
||||||
|
|
||||||
$MO_PATH $PipelineClientWorkingDir/build/BuildTemplate-CandidateInfoSheet.yml > $BUILDYAML_CANDIDATEINFOSHEET
|
"$MO_PATH" "$PipelineClientWorkingDir/build/BuildTemplate-CandidateInfoSheet.yml" > "$BUILDYAML_CANDIDATEINFOSHEET"
|
||||||
$MO_PATH $PipelineClientWorkingDir/build/BuildTemplate-JobBoard.yml > $BUILDYAML_JOBBOARD
|
"$MO_PATH" "$PipelineClientWorkingDir/build/BuildTemplate-JobBoard.yml >" "$BUILDYAML_JOBBOARD"
|
||||||
$MO_PATH $PipelineClientWorkingDir/build/BuildTemplate-ClientSubmission.yml > $BUILDYAML_CLIENTSUBMISSION
|
"$MO_PATH" "$PipelineClientWorkingDir/build/BuildTemplate-ClientSubmission.yml" > "$BUILDYAML_CLIENTSUBMISSION"
|
||||||
|
|
||||||
echo "Creating candidate info sheet..."
|
echo "Creating candidate info sheet..."
|
||||||
|
|
||||||
$MO_PATH $PipelineClientWorkingDir/Templates/CandidateInfoSheet/CandidateInfoSheet.md > $CandidateInfoSheetMarkdownOutputFile
|
"$MO_PATH" "$PipelineClientWorkingDir/Templates/CandidateInfoSheet/CandidateInfoSheet.md" > "$CandidateInfoSheetMarkdownOutputFile"
|
||||||
|
|
||||||
pandoc \
|
pandoc \
|
||||||
"$CandidateInfoSheetMarkdownOutputFile" \
|
"$CandidateInfoSheetMarkdownOutputFile" \
|
||||||
@ -36,7 +36,7 @@ pandoc \
|
|||||||
--metadata-file="$PipelineClientWorkingDir/build-temp/CandidateInfoSheet.yml" \
|
--metadata-file="$PipelineClientWorkingDir/build-temp/CandidateInfoSheet.yml" \
|
||||||
--from markdown \
|
--from markdown \
|
||||||
--to=pdf \
|
--to=pdf \
|
||||||
--output $CandidateInfoSheetPDFOutputFIle
|
--output "$CandidateInfoSheetPDFOutputFile"
|
||||||
|
|
||||||
echo "Combining markdown files into single input file for pandoc..."
|
echo "Combining markdown files into single input file for pandoc..."
|
||||||
|
|
||||||
@ -45,19 +45,19 @@ $MO_PATH "$PipelineClientWorkingDir/Templates/ContactInfo/ContactInfo-JobBoard.m
|
|||||||
$MO_PATH "$PipelineClientWorkingDir/Templates/ContactInfo/ContactInfo-ClientSubmit.md" > "$BUILD_TEMP_DIR/ContactInfo-ClientSubmit.md"
|
$MO_PATH "$PipelineClientWorkingDir/Templates/ContactInfo/ContactInfo-ClientSubmit.md" > "$BUILD_TEMP_DIR/ContactInfo-ClientSubmit.md"
|
||||||
|
|
||||||
#Pull in contact info
|
#Pull in contact info
|
||||||
cat $BUILD_TEMP_DIR/ContactInfo-JobBoard.md >> "$JobBoardMarkdownOutputFile"
|
cat "$BUILD_TEMP_DIR/ContactInfo-JobBoard.md" >> "$JobBoardMarkdownOutputFile"
|
||||||
echo " " >> "$JobBoardMarkdownOutputFile"
|
echo " " >> "$JobBoardMarkdownOutputFile"
|
||||||
|
|
||||||
cat $BUILD_TEMP_DIR/ContactInfo-ClientSubmit.md >> $ClientSubmissionMarkdownOutputFile
|
cat "$BUILD_TEMP_DIR/ContactInfo-ClientSubmit.md" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
|
|
||||||
echo "## Career Highlights" >> "$JobBoardMarkdownOutputFile"
|
echo "## Career Highlights" >> "$JobBoardMarkdownOutputFile"
|
||||||
echo "## Career Highlights" >> "$ClientSubmissionMarkdownOutputFile"
|
echo "## Career Highlights" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
|
|
||||||
cat $PipelineClientWorkingDir/Templates/SkillsAndProjects/Projects.md >> "$JobBoardMarkdownOutputFile"
|
cat "$PipelineClientWorkingDir/Templates/SkillsAndProjects/Projects.md" >> "$JobBoardMarkdownOutputFile"
|
||||||
echo "\pagebreak" >> $JobBoardMarkdownOutputFile
|
echo "\pagebreak" >> "$JobBoardMarkdownOutputFile"
|
||||||
|
|
||||||
cat $PipelineClientWorkingDir/Templates/SkillsAndProjects/Projects.md >> "$ClientSubmissionMarkdownOutputFile"
|
cat "$PipelineClientWorkingDir/Templates/SkillsAndProjects/Projects.md" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
echo "\pagebreak" >> "$ClientSubmissionMarkdownOutputFile"
|
echo "\pagebreak" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
|
|
||||||
echo " " >> "$JobBoardMarkdownOutputFile"
|
echo " " >> "$JobBoardMarkdownOutputFile"
|
||||||
@ -78,24 +78,24 @@ echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
|||||||
|
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
for position in \
|
for position in \
|
||||||
$(cat $PipelineClientWorkingDir/Templates/WorkHistory/WorkHistory.csv); do
|
$(cat "$PipelineClientWorkingDir/Templates/WorkHistory/WorkHistory.csv"); do
|
||||||
|
|
||||||
COMPANY="$(echo $position|awk -F ',' '{print $1}')"
|
COMPANY="$(echo $position|awk -F ',' '{print $1}')"
|
||||||
TITLE="$(echo $position|awk -F ',' '{print $2}')"
|
TITLE="$(echo $position|awk -F ',' '{print $2}')"
|
||||||
DATEOFEMPLOY="$(echo $position|awk -F ',' '{print $3}')"
|
DATEOFEMPLOY="$(echo $position|awk -F ',' '{print $3}')"
|
||||||
|
|
||||||
echo " " >> "$JobBoardMarkdownOutputFile"
|
echo " " >> "$JobBoardMarkdownOutputFile"
|
||||||
echo "**$COMPANY | $TITLE | $DATEOFEMPLOY**" >> $JobBoardMarkdownOutputFile
|
echo "**$COMPANY | $TITLE | $DATEOFEMPLOY**" >> "$JobBoardMarkdownOutputFile"
|
||||||
echo " " >> "$JobBoardMarkdownOutputFile"
|
echo " " >> "$JobBoardMarkdownOutputFile"
|
||||||
|
|
||||||
echo "**$COMPANY | $TITLE | $DATEOFEMPLOY**" >> $ClientSubmissionMarkdownOutputFile
|
echo "**$COMPANY | $TITLE | $DATEOFEMPLOY**" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
|
|
||||||
echo " " >> "$JobBoardMarkdownOutputFile"
|
echo " " >> "$JobBoardMarkdownOutputFile"
|
||||||
cat $PipelineClientWorkingDir/Templates/JobHistoryDetails/$COMPANY.md >> "$JobBoardMarkdownOutputFile"
|
cat "$PipelineClientWorkingDir/Templates/JobHistoryDetails/$COMPANY.md" >> "$JobBoardMarkdownOutputFile"
|
||||||
echo " " >> "$JobBoardMarkdownOutputFile"
|
echo " " >> "$JobBoardMarkdownOutputFile"
|
||||||
|
|
||||||
cat $PipelineClientWorkingDir/Templates/JobHistoryDetails/$COMPANY.md >> "$ClientSubmissionMarkdownOutputFile"
|
cat "$PipelineClientWorkingDir/Templates/JobHistoryDetails/$COMPANY.md" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -112,16 +112,16 @@ echo "## Skills" >> "$ClientSubmissionMarkdownOutputFile"
|
|||||||
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
echo " " >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
|
|
||||||
#Table heading
|
#Table heading
|
||||||
echo "|Skill|Experience|Skill Details|" >> $JobBoardMarkdownOutputFile
|
echo "|Skill|Experience|Skill Details|" >> "$JobBoardMarkdownOutputFile"
|
||||||
echo "|---|---|---|" >> $JobBoardMarkdownOutputFile
|
echo "|---|---|---|" >> "$JobBoardMarkdownOutputFile"
|
||||||
|
|
||||||
echo "|Skill|Experience|Skill Details|" >> $ClientSubmissionMarkdownOutputFile
|
echo "|Skill|Experience|Skill Details|" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
echo "|---|---|---|" >> $ClientSubmissionMarkdownOutputFile
|
echo "|---|---|---|" >> "$ClientSubmissionMarkdownOutputFile"
|
||||||
|
|
||||||
#Table rows
|
#Table rows
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
for skill in \
|
for skill in \
|
||||||
$(cat $PipelineClientWorkingDir/Templates/SkillsAndProjects/Skills.csv); do
|
$(cat "$PipelineClientWorkingDir/Templates/SkillsAndProjects/Skills.csv"); do
|
||||||
SKILL_NAME="$(echo $skill|awk -F '|' '{print $1}')"
|
SKILL_NAME="$(echo $skill|awk -F '|' '{print $1}')"
|
||||||
SKILL_YEARS="$(echo $skill|awk -F '|' '{print $2}')"
|
SKILL_YEARS="$(echo $skill|awk -F '|' '{print $2}')"
|
||||||
SKILL_DETAIL="$(echo $skill|awk -F '|' '{print $3}')"
|
SKILL_DETAIL="$(echo $skill|awk -F '|' '{print $3}')"
|
||||||
@ -169,7 +169,4 @@ pandoc \
|
|||||||
--from markdown \
|
--from markdown \
|
||||||
--to=docx \
|
--to=docx \
|
||||||
--reference-doc="$PipelineClientWorkingDir/build/resume-docx-reference.docx" \
|
--reference-doc="$PipelineClientWorkingDir/build/resume-docx-reference.docx" \
|
||||||
--output "$ClientSubmissionMSWordOutputFile"
|
--output "$ClientSubmissionMSWordOutputFile"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user