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

Postbuild fails when used with amazon-ecs plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: matrix-project-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.60.2
      matrix-project:1.11
      nodelabelparameter:1.7.2
      amazon-ecs:1.11
    • Similar Issues:

      Description

      I am using the node label parameter plugin with the intention of restricting all builds to a specific label associated with slaves provided by the amazon-ecs plugin.  These slaves are dynamic, in that slave containers are created as jobs that reference the cloud label are started.

      The initial matrix build is successful, however when the 'Postbuild' executes, it attempts to re-use the specific slave node that started the build e.g.:

      10:07:15 Building remotely on ecs-node-a9b520a510fe2 (ecs-node) ...
      ...
      10:18:12 [PostBuildScript] - Execution post build scripts.
      10:18:12 Run condition [Always] enabling perform for step [BuilderChain]
      10:18:12 FATAL: no such build node: ecs-node-a9b520a510fe2
      10:18:12 java.lang.NullPointerException: no such build node: ecs-node-a9b520a510fe2

      The interim build steps are successfully spawning new slave containers using the label I specified, but the Post-build always attempts to run on the specific slave where the initial job was spawned.

      I would very much appreciate it if anyone could point me in the right direction.

        Attachments

          Activity

          jnalley Jon Nalley created issue -
          dheid Daniel Heid made changes -
          Field Original Value New Value
          Component/s postbuildscript-plugin [ 15922 ]
          dheid Daniel Heid made changes -
          Component/s postbuildscript-plugin [ 15922 ]
          Hide
          dheid Daniel Heid added a comment -

          I don't think that this has something to do with the postbuildscript plugin and removed the component. Please provide your postbuildscript configuration.

          Show
          dheid Daniel Heid added a comment - I don't think that this has something to do with the postbuildscript plugin and removed the component. Please provide your postbuildscript configuration.

            People

            Assignee:
            kohsuke Kohsuke Kawaguchi
            Reporter:
            jnalley Jon Nalley
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: