jenkinsci / amazon-ecs-plugin

Amazon EC2 Container Service Plugin for Jenkins
https://plugins.jenkins.io/amazon-ecs
MIT License
193 stars 227 forks source link

Unable to specify customWorkspace with declarative agent definition. #212

Closed AntonyRileyAtVerto closed 3 years ago

AntonyRileyAtVerto commented 4 years ago

I suspect I'm probably missing something, but essentially I'm trying to do something like this:

pipeline {
    agent {
        ecs {
            customWorkspace "${java.util.UUID.randomUUID()}"
            inheritFrom 'linux2'
            memory 2048
        }
    }
...

We're using multibranch pipeline and the default workspace names have this horrible habit of causing build failures, I can't seem to find a way to set customWorkspace unless you use node {} with a label, which prohibits declaratively setting the memory.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ibalosh commented 2 years ago

I am seeing the same issue, is there a workaround for this?