-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declarative pipeline Fargate example does not work (Invalid agent type "ecs" specified.) #84
Comments
Which version are you using? The declarative support comes with 1.20 with is currently in beta (1.20-beta2) |
On version 1.19, which is the latest officially at this moment, you can still use this:
And works as long as you setup correctly fargate on settings and use that label. |
Please, could help us? pipeline { Jenkins output: Jenkins Log: |
In your Jenkins settings (Manage Jenkins -> Configure System), did you set up a "Amazon EC2 Container Services Cloud" with name"default-cloud"? Maybe this is missing? |
closed. further discussion in #92 |
When I run a simple declarative pipeline like the one in your PR comments and your readme, I am hit with this error immediately when trying to create a Fargate agent:
Invalid agent type "ecs" specified. Must be one of [any, docker, dockerfile, label, none]
There is no "agent type" called "ecs" as far as Jenkins is able to determine, and we've even tried to restart the instance itself with hopes that maybe the plugin needed another reload before it could be detected and run properly in a pipeline.
The code we are trying is this example provided by this project, modified a bit to strip out any additional complications:
Can this documentation get some clarification? This is the only example we can find regarding using this in a declarative pipeline, so we have absolutely no idea what to change here to get this working.
The text was updated successfully, but these errors were encountered: