mrsixw / concourse-rsync-resource

concourse.ci resource for persisting build artifacts on a shared storage location with rsync and ssh.
Apache License 2.0
18 stars 40 forks source link

Question: remove the automatically generated folder name #9

Closed Sispheor closed 7 years ago

Sispheor commented 7 years ago

My task create a folder with the date of the day.

Here is a script example I have:

set -e -x

echo "Create folder"
today_folder="built-rpms/`date '+%Y-%m-%d_%H:%M:%S'`"
mkdir ${today_folder}

echo "Create a file"
touch ${today_folder}/built_test.txt

And my pipline:

- put: rsync-server
  params:
    sync_dir : "built-rpms"

On the remote server this is what I have

tree /rsync/

├── 684873f5d963255108e94e1990364cee
│   └── 2017-08-10_13:56:05
│       └── built_test.txt

We can see that a folder name has been generated (684873f5d963255108e94e1990364cee)

I would like to remove this folder level to have

tree /rsync/

│   └── 2017-08-10_13:56:05
│       └── built_test.txt
Sispheor commented 7 years ago

I didn't see the disable_version_path option. PEBKAC issue! Sorry ! :)