rundeck-plugins / rundeck-s3-log-plugin

Store execution logs in Amazon S3 buckets
Apache License 2.0
32 stars 26 forks source link

Add job.group and job.name to possible path identifiers #15

Closed isuftin closed 7 years ago

isuftin commented 7 years ago

My current S3 write path looks like: rundeck/${job.project}/${job.id}/${job.execid}.log

For our operations group, it would be very useful if we could do something like: rundeck/${job.project}/${job.group}/${job.name}/${job.execid}.log

However, the group and name params are not currently recognized.

gschueler commented 7 years ago

this is pretty simple to add, however for adhoc commands, there is no job group or name....

gschueler commented 7 years ago

any blank path components are collapsed, so for an adhoc command the pattern

rundeck/${job.project}/${job.group}/${job.name}/${job.execid}.log

would basically become

rundeck/${job.project}/${job.execid}.log

is that ok?