diff --git a/jenkins.ps1 b/jenkins.ps1 index 9a1ad09735..3ab6b0977b 100644 --- a/jenkins.ps1 +++ b/jenkins.ps1 @@ -13,6 +13,7 @@ try { Add-Content -Path $COPY_REFERENCE_FILE_LOG -Value "--- Copying files at $(Get-Date)" Get-ChildItem -Recurse -File -Path 'C:/ProgramData/Jenkins/Reference' | ForEach-Object { Copy-ReferenceFile $_.FullName } +Add-Content -Path $COPY_REFERENCE_FILE_LOG -Value "--- Copied files finished at $(Get-Date)" # if `docker run` first argument starts with `--` the user is passing jenkins launcher arguments if(($args.Count -eq 0) -or ($args[0] -match "^--.*")) { diff --git a/jenkins.sh b/jenkins.sh index 72dba64e4e..0c57c750e8 100755 --- a/jenkins.sh +++ b/jenkins.sh @@ -11,6 +11,7 @@ fi touch "${COPY_REFERENCE_FILE_LOG}" || { echo "Can not write to ${COPY_REFERENCE_FILE_LOG}. Wrong volume permissions?"; exit 1; } echo "--- Copying files at $(date)" >> "$COPY_REFERENCE_FILE_LOG" find "${REF}" \( -type f -o -type l \) -exec bash -c '. /usr/local/bin/jenkins-support; for arg; do copy_reference_file "$arg"; done' _ {} + +echo "--- Copied files finished at $(date)" >> "$COPY_REFERENCE_FILE_LOG" # if `docker run` first argument start with `--` the user is passing jenkins launcher arguments if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then