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

Cannot deploy to Weblogic from build slave: Parameter 'directory' is not a directory

    Details

    • Similar Issues:

      Description

      We're migrating from a master-only Jenkins server to build slaves. When trying to run a deployment to a Weblogic server the plugin fails with

      java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
      

      The artifacts have been successfully downloaded into the workspace before.

      More details:

      [WeblogicDeploymentPlugin] - Pay attention to JDK version {selected version is 1.8.0_131} compatibility with WebLogic Deployer API (see Oracle documentation).
      [WeblogicDeploymentPlugin] - The JDK /usr/java/latest will be used.
      [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on my-service.war]...
      java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
      at org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:545)
      at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)
      at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:691)
      at org.jenkinsci.plugins.deploy.weblogic.FreeStyleJobArtifactSelectorImpl.selectArtifactRecorded(FreeStyleJobArtifactSelectorImpl.java:46)
      at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:129)
      at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:304)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1753)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)
      ERROR: [WeblogicDeploymentPlugin] - Failed to get artifact from archive directory.
      

      Job configuration:

      <org.jenkinsci.plugins.deploy.weblogic.data.DeploymentTask>
      <id>Oexmq1owvz</id>
      <weblogicEnvironmentTargetedName>international-wls-dev</weblogicEnvironmentTargetedName>
      <deploymentName>rest-services-dach</deploymentName>
      <deploymentTargets>dach</deploymentTargets>
      <isLibrary>false</isLibrary>
      <builtResourceRegexToDeploy>my-service.war</builtResourceRegexToDeploy>
      <baseResourcesGeneratedDirectory></baseResourcesGeneratedDirectory>
      <taskName>undeploy-rest-services-dach</taskName>
      <jdk>
      <name>system</name>
      <home>/usr/java/latest</home>
      <properties/>
      </jdk>
      <stageMode>bydefault</stageMode>
      <commandLine>-adminurl t3://{wl.host}:{wl.port} -user {wl.login} -password {wl.password} -debug -remote -verbose -name {wl.deployment_name} -targets {wl.targets} -undeploy;</commandLine>
      <deploymentPlan></deploymentPlan>
      <protocol>t3</protocol>
      </org.jenkinsci.plugins.deploy.weblogic.data.DeploymentTask>
      

      When running on the master, deployment succeeds.

      What's wrong?

        Attachments

          Issue Links

            Activity

            stephan Stephan Austermühle created issue -
            raphc Raphael CHAUMIER made changes -
            Field Original Value New Value
            Labels weblogic weblogic-deployer-plugin-3.6 weblogic weblogic-deployer-plugin-3.6 weblogic-deployer_plugin_4.0
            raphc Raphael CHAUMIER made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            raphc Raphael CHAUMIER made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            raphc Raphael CHAUMIER made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            raphc Raphael CHAUMIER made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            raphc Raphael CHAUMIER made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 17488 ]
            raphc Raphael CHAUMIER made changes -
            Status In Review [ 10005 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                raphc Raphael CHAUMIER
                Reporter:
                stephan Stephan Austermühle
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: