jenkinsci / amazon-ecs-plugin

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

Link job to ECS task #289

Open grahamrhay opened 1 year ago

grahamrhay commented 1 year ago

What feature do you want to see added?

Is there any easy way to link a job in jenkins, to the actual task on ECS? I am probably missing something, but it doesn't seem easy/possible (particularly when you have 100s/1000s of tasks, and it's gone horribly wrong somewhere).

The ideal, for me, would be to have the task arn somewhere in the jenkins ui. e.g. the system info pane:

https://jenkins/computer/swarm-ffksd/systemInfo

afaict, the task info is just discarded after launch.

You can get the public IP, but you can't search using that on the aws console. Not sure what else there is, to link the two.

Upstream changes

No response

grahamrhay commented 1 year ago

https://github.com/jenkinsci/amazon-ecs-plugin/blob/a22533410cb195e9cdbf1cfbe84c7785acccdb0f/src/main/java/com/cloudbees/jenkins/plugins/amazonecs/ECSLauncher.java#L226

ah, no, it is stored. I can see it in the logs when the task stops