Skip to content

Commit

Permalink
Merge pull request #4 from ankorstore/fix/get-job-artifacts
Browse files Browse the repository at this point in the history
Fix/get job artifacts
  • Loading branch information
ankorstore-haddowg authored Mar 9, 2023
2 parents ed5706d + 08462f5 commit 7c365d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/commands/get-job-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ parameters:
description: Preserve the artifact paths/directories
type: boolean
default: true
file-name-pattern:
description: A regex pattern for the file path(s) to be downloaded
path-pattern:
description: A regex pattern for the artifact path(s) to be downloaded
type: string
steps:
- run:
name: Downloading artifacts
environment:
JOB_LIST: << parameters.job-name >>
TARGET_PATH: << parameters.save-to-directory >>
PRESERVE_PATHS: << parameters.preserve-paths >>
TARGET_ARTIFACT_PATTERN: << parameters.path-pattern >>
command: << include(scripts/get-job-artifacts.sh) >>
4 changes: 2 additions & 2 deletions src/scripts/wait-for-job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ do
fi
break
else
echo "Looks like $JOB_NAME($JOB_NUMBER) is still not done. Status: $JOB_STATUS"
echo "Going to sleep for $SLEEP_TIME"
echo " $JOB_NAME ($JOB_NUMBER) is still not done. Status: $JOB_STATUS"
echo " Sleeping for $SLEEP_TIME"
sleep "$SLEEP_TIME"
CURRENT_WAIT_TIME=$(( CURRENT_WAIT_TIME + SLEEP_TIME ))
fi
Expand Down

0 comments on commit 7c365d8

Please sign in to comment.