Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65840

Jenkins ECS agents are not shutting down at the end of the pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Jenkins running in ECS using EC2 instances

      Jenkins ECS agents are not shutting down at the end of the pipeline. We have separate ECS clusters for controller and worker. Please see the attached screenshots. We are running Jenkins 2.289.1. How do I modify any settings on jenkins controller or worker to make sure the ecs agents are deleted when the pipeline ends?

       

      List of plugins installed.

      Jenkins: 2.289.1
      OS: Linux - 4.14.173-106.229.amzn1.x86_64

      jquery-detached:1.2.1
      gradle:1.36
      cloudbees-folder:6.15
      ws-cleanup:0.39
      durable-task:1.37
      plain-credentials:1.7
      pipeline-stage-view:2.19
      blueocean-commons:1.24.7
      icon-shim:3.0.0
      hudson-wsclean-plugin:1.0.8
      nexus-artifact-uploader:2.13
      blueocean-pipeline-api-impl:1.24.7
      htmlpublisher:1.25
      handy-uri-templates-2-api:2.1.8-1.0
      aws-codebuild:0.52
      pipeline-utility-steps:2.8.0
      github:1.33.1
      docker-slaves:1.0.7
      ant:1.11
      bouncycastle-api:2.20
      maven-plugin:3.11
      blueocean-dashboard:1.24.7
      workflow-job:2.41
      blueocean-i18n:1.24.7
      folder-auth:1.3
      pipeline-model-api:1.8.5
      workflow-step-api:2.23
      timestamper:1.13
      blueocean-bitbucket-pipeline:1.24.7
      jquery-ui:1.0.2
      mapdb-api:1.0.9.0
      workflow-aggregator:2.6
      ldap:2.7
      blueocean-jira:1.24.7
      aws-bucket-credentials:1.0.0
      pipeline-model-declarative-agent:1.1.1
      docker-commons:1.17
      authentication-tokens:1.4
      blueocean-github-pipeline:1.24.7
      pipeline-model-extensions:1.8.5
      blueocean-display-url:2.4.1
      okhttp-api:3.14.9
      pipeline-stage-tags-metadata:1.8.5
      plugin-util-api:2.2.0
      customize-build-now:1.1
      blueocean-config:1.24.7
      echarts-api:5.1.0-2
      workflow-multibranch:2.24
      throttle-concurrents:2.2
      cloudbees-bitbucket-branch-source:2.9.9
      aws-java-sdk:1.11.995
      thinBackup:1.10
      blueocean-rest:1.24.7
      apache-httpcomponents-client-4-api:4.5.13-1.0
      copyartifact:1.46.1
      ssh-credentials:1.18.1
      matrix-project:1.18
      ssh-slaves:1.31.5
      bootstrap4-api:4.6.0-3
      blueocean-web:1.24.7
      run-condition:1.5
      variant:1.4
      blueocean-pipeline-editor:1.24.7
      lockable-resources:2.11
      workflow-support:3.8
      branch-api:2.6.4
      display-url-api:2.3.5
      conditional-buildstep:1.4.1
      envinject-api:1.7
      popper-api:1.16.1-2
      pam-auth:1.6
      momentjs:1.1.1
      blueocean-personalization:1.24.7
      ace-editor:1.1
      plugin-usage-plugin:1.2
      saml:2.0.6
      jquery:1.12.4-1
      workflow-durable-task-step:2.39
      workflow-cps-global-lib:2.19
      subversion:2.14.2
      pipeline-stage-step:2.5
      favorite:2.3.3
      token-macro:2.15
      docker-workflow:1.26
      blueocean-jwt:1.24.7
      external-monitor-job:1.7
      git-client:3.7.2
      blueocean-events:1.24.7
      git-server:1.9
      blueocean-rest-impl:1.24.7
      jsch:0.1.55.2
      checks-api:1.7.0
      blueocean-pipeline-scm-api:1.24.7
      javadoc:1.6
      structs:1.23
      caffeine-api:2.9.1-23.v51c4e2c879c8
      pipeline-rest-api:2.19
      blueocean-autofavorite:1.2.4
      git:4.7.2
      matrix-auth:2.6.7
      docker-plugin:1.2.2
      build-timeout:1.20
      mercurial:2.15
      saferestart:0.3
      handlebars:3.0.8
      antisamy-markup-formatter:2.1
      jdk-tool:1.5
      workflow-scm-step:2.12
      ansible-tower:0.16.0
      date-parameter:0.0.4
      pipeline-milestone-step:1.3.2
      github-branch-source:2.10.4
      snakeyaml-api:1.27.0
      pipeline-build-step:2.13
      pipeline-input-step:2.12
      trilead-api:1.0.13
      font-awesome-api:5.15.3-2
      artifact-promotion:0.5.2
      role-strategy:3.1.1
      workflow-api:2.42
      jackson2-api:2.12.3
      blueocean-git-pipeline:1.24.7
      scalable-amazon-ecs:1.0
      sshd:3.0.3
      github-api:1.123
      sse-gateway:1.24
      script-security:1.77
      jquery3-api:3.6.0-1
      jenkins-design-language:1.24.7
      mailer:1.34
      pipeline-github-lib:1.0
      pipeline-timeline:1.0.3
      global-build-stats:1.5
      scm-api:2.6.4
      pipeline-model-definition:1.8.5
      junit:1.50
      ssh-steps:2.0.0
      email-ext:2.83
      monitoring:1.87.0
      folder-properties:1.2.1
      aws-credentials:1.29
      s3:0.11.7
      jira:3.3
      pipeline-graph-analysis:1.11
      github-pullrequest:0.3.0
      jjwt-api:0.11.2-9.c8b45b8bb173
      workflow-basic-steps:2.23
      envinject:2.4.0
      windows-slaves:1.8
      pubsub-light:1.14
      credentials-binding:1.25
      resource-disposer:0.15
      slack:2.48
      docker-java-api:3.1.5.2
      blueocean:1.24.7
      command-launcher:1.6
      parameterized-trigger:2.40
      credentials:2.5
      amazon-ecs:1.37
      workflow-cps:2.92
      ansible:1.1
      docker-build-step:2.7
      blueocean-core-js:1.24.7

            Unassigned Unassigned
            rmred25 Rohith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: