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

ArtifactDeployer breaks under recent build(s) of Jenkins

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • Windows Server 2008 R2 running as a service. The bug was noticed under 1.588, but the previous version that worked was 1.585 (we skipped the releases between these). Latest version of Java (JRE) 7.

      When the ArtifactDeployer kicks off after the build we're getting this:
      ERROR: Publisher org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher aborted due to exception java.lang.AbstractMethodError

          [JENKINS-25461] ArtifactDeployer breaks under recent build(s) of Jenkins

          Paul Fletcher added a comment - - edited

          I'm getting the same issue on Windows Server 2012 Standard with 1.586

          Looks like its related to JENKINS-24521

          [ArtifactDeployer] - Starting deployment from the post-action ...
          ERROR: Publisher org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher aborted due to exception
          java.lang.AbstractMethodError
          	at com.sun.jna.Structure.fieldOrder(Structure.java:884)
          	at com.sun.jna.Structure.getFields(Structure.java:910)
          	at com.sun.jna.Structure.deriveLayout(Structure.java:1058)
          	at com.sun.jna.Structure.calculateSize(Structure.java:982)
          	at com.sun.jna.Structure.calculateSize(Structure.java:949)
          	at com.sun.jna.Structure.allocateMemory(Structure.java:375)
          	at com.sun.jna.Structure.<init>(Structure.java:184)
          	at com.sun.jna.Structure.<init>(Structure.java:172)
          	at com.sun.jna.Structure.<init>(Structure.java:159)
          	at com.sun.jna.Structure.<init>(Structure.java:151)
          	at org.jruby.ext.posix.BaseNativeFileStat.<init>(BaseNativeFileStat.java:9)
          	at org.jruby.ext.posix.WindowsFileStat.<init>(WindowsFileStat.java:21)
          	at org.jruby.ext.posix.WindowsPOSIX.allocateStat(WindowsPOSIX.java:17)
          	at org.jruby.ext.posix.BaseNativePOSIX.stat(BaseNativePOSIX.java:182)
          	at com.atlassian.ant.tasks.PermissionsUtils.getPermissions(PermissionsUtils.java:21)
          	at com.atlassian.ant.tasks.CopyWithPerms.doFileOperations(CopyWithPerms.java:75)
          	at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy$1CopyImpl.doFileOperations(LocalCopy.java:60)
          	at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:567)
          	at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy.copyAndGetNumbers(LocalCopy.java:83)
          	at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:70)
          	at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:40)
          	at hudson.FilePath.act(FilePath.java:919)
          	at hudson.FilePath.act(FilePath.java:897)
          	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.processDeployment(ArtifactDeployerPublisher.java:202)
          	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher._perform(ArtifactDeployerPublisher.java:128)
          	at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.perform(ArtifactDeployerPublisher.java:99)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
          	at hudson.model.Build$BuildExecution.post2(Build.java:183)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
          	at hudson.model.Run.execute(Run.java:1784)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:89)
          	at hudson.model.Executor.run(Executor.java:240)
          

          Paul Fletcher added a comment - - edited I'm getting the same issue on Windows Server 2012 Standard with 1.586 Looks like its related to JENKINS-24521 [ArtifactDeployer] - Starting deployment from the post-action ... ERROR: Publisher org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher aborted due to exception java.lang.AbstractMethodError at com.sun.jna.Structure.fieldOrder(Structure.java:884) at com.sun.jna.Structure.getFields(Structure.java:910) at com.sun.jna.Structure.deriveLayout(Structure.java:1058) at com.sun.jna.Structure.calculateSize(Structure.java:982) at com.sun.jna.Structure.calculateSize(Structure.java:949) at com.sun.jna.Structure.allocateMemory(Structure.java:375) at com.sun.jna.Structure.<init>(Structure.java:184) at com.sun.jna.Structure.<init>(Structure.java:172) at com.sun.jna.Structure.<init>(Structure.java:159) at com.sun.jna.Structure.<init>(Structure.java:151) at org.jruby.ext.posix.BaseNativeFileStat.<init>(BaseNativeFileStat.java:9) at org.jruby.ext.posix.WindowsFileStat.<init>(WindowsFileStat.java:21) at org.jruby.ext.posix.WindowsPOSIX.allocateStat(WindowsPOSIX.java:17) at org.jruby.ext.posix.BaseNativePOSIX.stat(BaseNativePOSIX.java:182) at com.atlassian.ant.tasks.PermissionsUtils.getPermissions(PermissionsUtils.java:21) at com.atlassian.ant.tasks.CopyWithPerms.doFileOperations(CopyWithPerms.java:75) at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy$1CopyImpl.doFileOperations(LocalCopy.java:60) at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:567) at org.jenkinsci.plugins.artifactdeployer.service.LocalCopy.copyAndGetNumbers(LocalCopy.java:83) at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:70) at org.jenkinsci.plugins.artifactdeployer.service.ArtifactDeployerCopy.invoke(ArtifactDeployerCopy.java:40) at hudson.FilePath.act(FilePath.java:919) at hudson.FilePath.act(FilePath.java:897) at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.processDeployment(ArtifactDeployerPublisher.java:202) at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher._perform(ArtifactDeployerPublisher.java:128) at org.jenkinsci.plugins.artifactdeployer.ArtifactDeployerPublisher.perform(ArtifactDeployerPublisher.java:99) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1784) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

          Daniel Beck added a comment -

          Caused by the upgrade of the bundled JNA from 3.x to 4.x in Jenkins 1.586. Plugin needs to bundle its own JNA (and prefer using that) or upgrade the library this plugin expects.

          Daniel Beck added a comment - Caused by the upgrade of the bundled JNA from 3.x to 4.x in Jenkins 1.586. Plugin needs to bundle its own JNA (and prefer using that) or upgrade the library this plugin expects.

          Matt Philmon added a comment -

          Is there a workaround I can try? I can't move Jenkins forward without this.

          Matt Philmon added a comment - Is there a workaround I can try? I can't move Jenkins forward without this.

          Daniel Beck added a comment -

          To clarify, you cannot upgrade beyond 1.585 without a fix? Or what else is the problem here?

          Daniel Beck added a comment - To clarify, you cannot upgrade beyond 1.585 without a fix? Or what else is the problem here?

          Matt Philmon added a comment -

          That is correct. I am stuck on Jenkins 1.585 until this bug is fixed. We heavily use this plugin.

          Matt Philmon added a comment - That is correct. I am stuck on Jenkins 1.585 until this bug is fixed. We heavily use this plugin.

          Matt Philmon added a comment -

          I don't suppose anyone has an idea for a workaround?

          Matt Philmon added a comment - I don't suppose anyone has an idea for a workaround?

          pedro reis added a comment -

          We're using Jenkins 1.565.3 and can't operate ArtifactDeployer 0.32.
          It doesn't outputs any message (bad or good), even if forced an invalid input file.
          "Fail build if there are no files to deploy" also doesn't fails the build.
          Tried also inside Flexible publish:
          [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: ${REDO_BUILD})
          Run condition [Or] enabling perform for step [[ArtifactDeployer] - Deploy the artifacts from build workspace to remote locations]

          Anyone has any clues?

          pedro reis added a comment - We're using Jenkins 1.565.3 and can't operate ArtifactDeployer 0.32. It doesn't outputs any message (bad or good), even if forced an invalid input file. "Fail build if there are no files to deploy" also doesn't fails the build. Tried also inside Flexible publish: [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: ${REDO_BUILD}) Run condition [Or] enabling perform for step [ [ArtifactDeployer] - Deploy the artifacts from build workspace to remote locations] Anyone has any clues?

            gbois Gregory Boissinot
            mattisking Matt Philmon
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: