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

Postbuild fails when used with amazon-ecs plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • matrix-project-plugin
    • None
    • Jenkins ver. 2.60.2
      matrix-project:1.11
      nodelabelparameter:1.7.2
      amazon-ecs:1.11

      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.

          [JENKINS-46280] Postbuild fails when used with amazon-ecs plugin

          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.

          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.

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

              Created:
              Updated: