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

Unable to deploy the War file using Deploy Weblogic Plugin through jenkins using weblogic server.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins version 2.121.3
      Weblogic version 12.2.1.2.0
      Java version 1.8.0_144
      Deploy Weblogic Plugin 4.1
      Publish over ssh plugin 1.19.1
      os : oel 7

      Hi, I want to deploy an warfile(already generated and exist) in weblogic remote server by moving the file from source to destination using the ssh plugin through jenkins and the ssh part is good when comes to the deployment part i facing the below issues.

      Jenkins Console Output:

      Started by user

      jenkins

      [WeblogicDeploymentPlugin] - TRANSFERING LIBRARY : (local=OneGlo-Loan-Bot-test.war) (remote=/var/jenkins/OneGlo-Loan-Bot-test.war) to (ftp=hostname@username) ...
      [WeblogicDeploymentPlugin] - LIBRARY TRANSFERED SUCCESSFULLY.

      [WeblogicDeploymentPlugin] - Executing task ...java.lang.RuntimeException: task completed abnormally (exit code = 1). Check your Weblogic Deployment logs.        at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.customize(DeploymentTaskServiceImpl.java:344)        at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:182)        at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:303)        at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)        at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)        at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)        at hudson.model.Build$BuildExecution.post2(Build.java:186)        at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)        at hudson.model.Run.execute(Run.java:1823)        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)        at hudson.model.ResourceController.execute(ResourceController.java:97)        at hudson.model.Executor.run(Executor.java:429)ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. Check your Weblogic deployment logs.[INFO] ------------------------------------------------------------------------[INFO] DEPLOYMENT FAILURE[INFO] ------------------------------------------------------------------------Finished: SUCCESS  

      Deployment Task Configuration (Job):
      The configuration can be seen in the attached images conf-1.png and conf-2.png.
      Command Line Options:

      -adminurl http://hostname:portno/console -user system -password system -debug -remote -verbose -name NAME -source /var/jenkins/ -targets /u03/weblogic/Middleware/user_projects/domains/base_domain/servers/AdminServer/upload/ -cancel;

      WebLogic Deployment Plugin Configuration:
      I tried several options, some of these options can be seen in the attached images weblogic-deployment-plugin-conf-1.png and weblogic-deployment-plugin-conf-2.png.

      plugin-configuration.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin plugin-configuration.xsd">
      <weblogic-targets>
      <weblogic-target>
      <name>AdminServer</name>
      <host>hostaname</host>
      <port>portno</port>
      <login>weblogic</login>
      <password>weblogic</password>
      <authMode>BY_LOGIN</authMode>
      <!-- used to transfer by FTP the component flagged as library to the WL machine -->
      <ftpHost>hostname</ftpHost>
      <ftpUser>weblogic</ftpUser>
      <ftpPassowrd>weblogic</ftpPassowrd>
      <remoteDir>/var/jenkins</remoteDir>
      </weblogic-target>
      </weblogic-targets>
      </config>

       

        1. build.png
          28 kB
          Dinesh Reddy
        2. config1.png
          35 kB
          Dinesh Reddy
        3. config2.png
          30 kB
          Dinesh Reddy
        4. web.png
          20 kB
          Dinesh Reddy

            raphc Raphael CHAUMIER
            one_globe Dinesh Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: