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

Artifactory deploy on a remote node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: artifactory-plugin
    • Labels:
      None
    • Environment:
      Jenkins version 1.419, artifactory-plugin 2.0.2 running on SuSe Linux (64) , build running on slave node (also SuSe Linux (64)).
    • Similar Issues:

      Description

      Building on a dumb slave fails if a enable "Deploy artifacts to Artifactory". The error I get is:

      ...
      Parsing POMs
      [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/data/builder/node/workspace/my-job/2.0.2 -cp /data/builder/node/maven3-agent.jar:/data/builder/node/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /data/builder/node/tools/maven-3-latest /data/builder/node/slave.jar /data/builder/node/maven3-interceptor.jar 44156
      Exception in thread "main" java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.2
              at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336)
              at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247)
              at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135)
              at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132)
              at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:106)
              at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:63)
      ERROR: Failed to launch Maven. Exit code = 1
      Skipping sonar analysis due to bad build status FAILURE
      Finished: FAILURE
      

      When I run this build on the master node, there is no problem. The corresponding (correct) log-part is:

      ...
      Parsing POMs
      [workspace] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/opt/jenkins/plugins/artifactory/WEB-INF/lib -cp /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/opt/jenkins/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /opt/jenkins/tools/maven-3-latest /opt/jenkins/war/WEB-INF/lib/remoting-1.419.jar /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 34663
      <===[JENKINS REMOTING CAPACITY]===>
      channel started
      Executing Maven:  -B -f /opt/jenkins/jobs/my-job/workspace/pom.xml clean install
      [INFO] Scanning for projects...
      ...
      

      Notice the different -Dm3plugin.lib setting. On the remote slave the /data/builder/node/workspace/my-job/2.0.2 does not exist.

        Attachments

          Activity

          Hide
          cprice_thetus Chris Price added a comment -

          We are seeing this behavior too, with jenkins 1.424, and both versions 2.0.2 and 2.0.3 of the artifactory plugin.

          Show
          cprice_thetus Chris Price added a comment - We are seeing this behavior too, with jenkins 1.424, and both versions 2.0.2 and 2.0.3 of the artifactory plugin.
          Hide
          jan_z Jan Zuchhold added a comment -

          There is also HAP-220 on the JFrog-JIRA about this.

          Show
          jan_z Jan Zuchhold added a comment - There is also HAP-220 on the JFrog-JIRA about this.
          Hide
          ikanters Ivar Kanters added a comment -

          This issue is resolved by the Jenkins Artifactory Plugin version 2.0.4.

          Show
          ikanters Ivar Kanters added a comment - This issue is resolved by the Jenkins Artifactory Plugin version 2.0.4.
          Hide
          ikanters Ivar Kanters added a comment -

          Using Jenkins Artifactory plugin 2.0.4 I´ve checked this and works fine now.

          Show
          ikanters Ivar Kanters added a comment - Using Jenkins Artifactory plugin 2.0.4 I´ve checked this and works fine now.

            People

            • Assignee:
              ikanters Ivar Kanters
              Reporter:
              ikanters Ivar Kanters
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: