Closed pms1969 closed 6 years ago
The resource doesn't control the directory name; it just puts a version
file in there. What you're seeing as the directory name is actually determined by the usage within the plan. You could use input_mapping
for this, or rename the get
step by explicitly specifying a different get
value and the resource name as resource
:
get: version
resource: different-version
@vito Champion. Just what I was looking for. Cheers. I'm continually learning new things about concourse.
I have some tasks that span jobs in a pipeline that do exactly the same thing except for version number resources. What I'd really like to do is use the semver resource to output to a different directory so that I only need the one task file, and can have
version/version
as one input to it.my setup is something like this:
task-requiring-version.yml
another-task-requiring-different-version.yml
pipeline.yml
where as what I think I'd like is:
pipeline.yml
If there's already a known way of doing this that doesn't require another task to copy the versions to task outputs (which would require the same custom tasks, just doing something different), I'd appreciate being told how. Otherwise, does this sound like a feasible enhancement?