Comments (4)
Ok I got it. The example in the readme is a bit confusing about label and template. I have copied and pasted the example thinking inheritFrom
is the template name...
This example works, base
is a label:
pipeline {
agent none
stages {
stage('Test') {
agent {
ecs {
cpu 1024
memory 512
inheritFrom 'base'
}
}
steps {
sh 'echo hello'
}
}
}
}
from amazon-ecs-plugin.
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?
(Also commented in #84)
from amazon-ecs-plugin.
Getting the same error. I only have one Amazon EC2 Container Services Cloud named "ecs-cloud-jenkins". No "cloud-default". I have a template named "base-template" (it's not fargate). My allowed declarative settings is set to "all".
pipeline {
agent none
stages {
stage('Test') {
agent {
ecs {
cpu 1024
memory 512
inheritFrom 'base-template'
}
}
steps {
sh 'echo hello'
}
}
}
}
Jenkins 2.174
ECS Plugin: 1.20
from amazon-ecs-plugin.
Is this resolved for you now? Can it be closed?
from amazon-ecs-plugin.
Related Issues (20)
- Fargate agent provisioning issue
- Very often get two Fargate tasks when only one agent is needed HOT 3
- Terminate node if the ECS task has stopped to fast fail execution HOT 2
- Specify agent tool location
- Enhancement: Retry launch failure due to network interface provision issues HOT 1
- Plugin Does Not Respect Non-proxy Hosts Configuration
- InvalidParameterException: Override argument cannot be null, Creating Task in cluster null HOT 2
- After jenkins version upgrade launch type is missing HOT 1
- Region is not available HOT 1
- ECS tasks are getting stopped by the error Stopped by Jenkins Amazon ECS PlugIn and exit code- 143 HOT 1
- Amazon Elastic Container Service (ECS) / Fargate plugin Version1.48 is not working HOT 3
- API - Manage Cloud Nodes
- The number of executors is not set on ECS Agent
- Add support for Sidecars in ECS Template
- Two tasks started when we have the condition in the pipeline HOT 1
- jenkinsURL how to change it
- CannotCreateVolumeError: unsupported Dockerfile contains VOLUME instruction HOT 1
- Add automatic restart of pipeline if agent is terminated (useful for spot instances)
- Add possibility to override ephemeralStorageSizeInGiB from declarative
- ECS Agents Re-used unexpectedly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ecs-plugin.