add "sim name" env var for clarity

This commit is contained in:
rhuairahrighairigh 2019-10-07 17:44:30 -04:00
parent 5befb6a954
commit 11c1d1b369

View File

@ -43,4 +43,5 @@ jobID=$(echo $jobID | sed 's/\(.*\):\d*/\1/')
# create the filename from the array job index (which won't be set if this is a normal job) # create the filename from the array job index (which won't be set if this is a normal job)
fileName=$(printf "out%05d.log" $AWS_BATCH_JOB_ARRAY_INDEX) fileName=$(printf "out%05d.log" $AWS_BATCH_JOB_ARRAY_INDEX)
aws s3 cp out.log s3://simulations-1/$jobID/$simResult/$fileName
aws s3 cp out.log s3://simulations-1/$SIM_NAME$jobID/$simResult/$fileName