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

Path weirdness when using multiconfiguration jobs

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      2.19.3 Jenkins docker image. Multijob plugin installed. Jobs executed on SSH slaves.
    • Similar Issues:

      Description

      NOTE: this ticket should be for the 'artifactdeployer' plugin, but it was not available in the Component drop-down.

      When specifying "Artifacts to deploy", if I enter "myproject_*", the following help text comes up:

      ‘myproject_*’ doesn’t match anything, but ‘default/myproject_*’ does. Perhaps that’s what you mean?
      

      The "default" directory is of course automatically created as part of the multiconfiguration job, and is where my myproject_* files actually exist.

      But if I take this suggestion and change the value of the "Artifacts to deploy" to "default/myproject_*", zero files are matched.

      If I change the "Basedir" field under "Advanced" to "default/", I get the following error when the build completes:

      [ArtifactDeployer] - Starting deployment from the post-action ...
      [ArtifactDeployer] - [ERROR] - Failed to deploy. The basedir path 'default/' from the workspace doesn't exist.
      FATAL: cannot change build result while in COMPLETED
      java.lang.IllegalStateException: cannot change build result while in COMPLETED
      	at hudson.model.Run.setResult(Run.java:459)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher._perform(ArtifactDeployerPublisher.java:134)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.access$000(ArtifactDeployerPublisher.java:55)
      	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher$1.endRun(ArtifactDeployerPublisher.java:88)
      	at hudson.matrix.DefaultMatrixExecutionStrategyImpl.notifyEndBuild(DefaultMatrixExecutionStrategyImpl.java:220)
      	at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:163)
      	at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:364)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1720)
      	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:313)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      

      If I simply ignore suggestion the plugin gives and use "myproject_*" with no Basedir, things work as expected despite the warning message on the job config screen.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              dpedu Dave Pedu
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: