Declarative pipeline Fargate example does not work (Invalid agent type "ecs" specified.)
See original GitHub issueWhen 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:
pipeline {
agent none
stages {
stage('Test') {
agent {
ecs {
inheritFrom 'jnlp-slave'
cpu 2048
memory 4096
}
}
steps {
sh 'echo hello'
}
}
}
}
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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Which version are you using? The declarative support comes with 1.20 with is currently in beta (1.20-beta2)
closed. further discussion in #92