This commit is contained in:
2025-01-01 09:52:15 -06:00
parent b460681499
commit 81f593500d
2 changed files with 48 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
############################################################################# #############################################################################
#SET THIS OR NOTHING WILL WORK #SET THIS OR NOTHING WILL WORK
export PipelineClientWorkingDir="D:/tsys/ReachableCEOPublic/MarketingMaterials/backend/ReachableCEO-Profile-FTE/local" export PipelineClientWorkingDir="D:/tsys/ReachableCEOPublic/MarketingMaterials/inputs/ReachableCEO-Profile-FTE/local"
#SET THIS OR NOTHING WILL WORK #SET THIS OR NOTHING WILL WORK
############################################################################# #############################################################################
@@ -25,7 +25,7 @@ export CandidateOneLineSummary="Senior (**Staff level**) **System Engineer/SRE/A
" "
export CandidateLinkedin="https://www.linkedin.com/in/charles-wyble-412007337" export CandidateLinkedin="https://www.linkedin.com/in/charles-wyble-412007337"
export CandidateGithub="https://www.github.com/reachableceo" export CandidateGithub="https://www.github.com/reachableceo"
export CandidateTagline="Tenacity. Velocity. Focus." export CandidateTagline="Candor. Consistency. Completion."
######################## ########################
# Formatting options # Formatting options
@@ -88,10 +88,10 @@ export CandidateRateSheetRemote1099HourlyPrefer="\$85.00"
RESUME_FILE_NAME="$(echo $CandidateName|sed 's/ //g')" RESUME_FILE_NAME="$(echo $CandidateName|sed 's/ //g')"
export BUILD_OUTPUT_DIR="D:/tsys/ReachableCEOPublic/MarketingMaterials/websites/profile-fte.reachableceo.com" export BUILD_OUTPUT_DIR="D:/tsys/ReachableCEOPublic/MarketingMaterials/outputs/profile-fte.reachableceo.com"
export CandidateInfoSheetMarkdownOutputFile="$BUILD_OUTPUT_DIR/recruiter/$RESUME_FILE_NAME-InfoSheet.md" export CandidateInfoSheetMarkdownOutputFile="$BUILD_OUTPUT_DIR/recruiter/$RESUME_FILE_NAME-CandidateInfoSheet.md"
export CandidateInfoSheetPDFOutputFile="$BUILD_OUTPUT_DIR/recruiter/$RESUME_FILE_NAME-InfoSheet.pdf" export CandidateInfoSheetPDFOutputFile="$BUILD_OUTPUT_DIR/recruiter/$RESUME_FILE_NAME-CandidateInfoSheet.pdf"
export JobBoardMarkdownOutputFile="$BUILD_OUTPUT_DIR/job-board/$RESUME_FILE_NAME-Resume.md" export JobBoardMarkdownOutputFile="$BUILD_OUTPUT_DIR/job-board/$RESUME_FILE_NAME-Resume.md"
export JobBoardPDFOutputFile="$BUILD_OUTPUT_DIR/job-board/$RESUME_FILE_NAME-Resume.pdf" export JobBoardPDFOutputFile="$BUILD_OUTPUT_DIR/job-board/$RESUME_FILE_NAME-Resume.pdf"

View File

@@ -1,16 +1,36 @@
#!/bin/bash #!/bin/bash
# A client script to setup variables for and execute: # Exit on error
#../vendor/git.knownelement.com/reachableceo/MarkdownResume-Pipeline/build/build-pipeline-server.sh set -e
source ./CandidateVariables.env # A client script to setup variables for and execute the markdown resume pipeline
# Executes: ../../vendor/git.knownelement.com/reachableceo/MarkdownResume-Pipeline/build/build-pipeline-server-markdown.sh
# Check if CandidateVariables.env exists
if [ ! -f "./CandidateVariables.env" ]; then
echo "Error: CandidateVariables.env not found"
exit 1
fi
# Source the environment file with error handling
if ! source ./CandidateVariables.env; then
echo "Error: Failed to source CandidateVariables.env. Please check the file for syntax errors."
exit 1
fi
# Verify required environment variables
required_vars=("PipelineClientWorkingDir" "BUILD_OUTPUT_DIR")
for var in "${required_vars[@]}"; do
if [ -z "${!var}" ]; then
echo "Error: Required environment variable $var is not set"
exit 1
fi
done
#################################################### ####################################################
#DO NOT CHANGE ANYTHING BELOW THIS LINE #DO NOT CHANGE ANYTHING BELOW THIS LINE
#################################################### ####################################################
################################################################## ##################################################################
# Setup globals for use by the build-pipeline-server.sh script # Setup globals for use by the build-pipeline-server.sh script
################################################################## ##################################################################
@@ -21,15 +41,26 @@ export BUILDYAML_JOBBOARD="$BUILD_TEMP_DIR/JobBoard.yml"
export BUILDYAML_CLIENTSUBMISSION="$BUILD_TEMP_DIR/ClientSubmission.yml" export BUILDYAML_CLIENTSUBMISSION="$BUILD_TEMP_DIR/ClientSubmission.yml"
export BUILDYAML_CANDIDATEINFOSHEET="$BUILD_TEMP_DIR/CandidateInfoSheet.yml" export BUILDYAML_CANDIDATEINFOSHEET="$BUILD_TEMP_DIR/CandidateInfoSheet.yml"
# Cleanup previous intermediatge and final output artifacts # Create necessary directories if they don't exist
mkdir -p "$BUILD_TEMP_DIR"
mkdir -p "$BUILD_OUTPUT_DIR/client-submit"
mkdir -p "$BUILD_OUTPUT_DIR/job-board"
mkdir -p "$BUILD_OUTPUT_DIR/recruiter"
rm $BUILD_TEMP_DIR/*.yml # Cleanup previous intermediate and final output artifacts
rm $BUILD_TEMP_DIR/*.md rm -vf "$BUILD_TEMP_DIR"/*.yml
rm -vf "$BUILD_TEMP_DIR"/*.md
rm $BUILD_OUTPUT_DIR/client-submit/* rm -vf "$BUILD_OUTPUT_DIR"/client-submit/*
rm $BUILD_OUTPUT_DIR/job-board/* rm -vf "$BUILD_OUTPUT_DIR"/job-board/*
rm $BUILD_OUTPUT_DIR/recruiter/* rm -vf "$BUILD_OUTPUT_DIR"/recruiter/*
# Verify pipeline server script exists
PIPELINE_SERVER="../../vendor/git.knownelement.com/reachableceo/MarkdownResume-Pipeline/build/build-pipeline-server-markdown.sh"
if [ ! -f "$PIPELINE_SERVER" ]; then
echo "Error: Pipeline server script not found at: $PIPELINE_SERVER"
exit 1
fi
# Call the build-pipeline-server in the vendored repository to produce updated output artifacts # Call the build-pipeline-server in the vendored repository to produce updated output artifacts
bash "$PIPELINE_SERVER"
bash ../../vendor/git.knownelement.com/reachableceo/MarkdownResume-Pipeline/build/build-pipeline-server-markdown.sh