Partition static resources defined in pipeline.yaml

Resources statically defined in pipeline.yaml are currently not
subject to workload partitioning, so we can't do HA. If we have
multiple agents running with the same pipeline.yaml, the samples
will be duplicated.

This patch partitions the static resources as well.

Closes-bug: #1369538
Change-Id: Iff3b33db58302fb2e89b1b3722937a031a70be5f
Merge "Partition static resources defined in pipeline.yaml"