Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Not A Defect
    • Component/s: deploy-plugin
    • Labels:
    • Environment:
      Jenkins 2.235.1,Maven Integration plugin 3.6 ,tomcat 8.5
    • Similar Issues:

      Description

      dear team

      I'm from china thanks your progam and support.

      when i build my project will report no pom.xml found. beacuse the pom.xml in project folder but the jenkins need pom.xml in project parent folder. when i move pom.xml to parent folder will build success and the target folder will create in item folder but the war package file miss many file then can post to tomcat server.(target folder is workespase/item name/target/ build war)

      when i use Maven Integration plugin to build my project build will success(because located the pom.xml in my project folder) and no miss files. but post to tomcat failure ,(target folder is workespase/item name/project name/target/ build war) follow is infomation from build process.

      DEBUG] Writing tracking file /root/repository/org/springframework/boot/springboot_mybatis/2.2.4.RELEASE/_remote.repositories
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 13.781 s
      [INFO] Finished at: 2020-06-22T01:27:33+08:00
      [INFO] ------------------------------------------------------------------------
      Waiting for Jenkins to finish collecting data
      [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/pom.xml to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.pom
      [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/target/springboot_mybatis-2.2.4.RELEASE.war to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.war
      channel stopped
      ERROR: Step 'Deploy war/ear to a container' aborted due to exception:
      java.lang.InterruptedException: [DeployPublisher][WARN] No wars found. Deploy aborted. %n
      at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:107)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1074)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1905)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)
      Finished: FAILURE

      so i think this is bug of jenkins

      the jenkins now need the target path in /workspase/item name/target/
      but locate pom.xml will change the target folder location to /workspase/item name/project naem/target so jenkins can't found the war package.

      regards kun

        Attachments

        1. config.pdf
          456 kB
        2. config2.pdf
          487 kB
        3. path.jpg
          path.jpg
          357 kB

          Activity

          Hide
          jansohn Robin Jansohn added a comment -

          Please share your configuration. Especially the regex for locating the WAR/EAR file.

          Show
          jansohn Robin Jansohn added a comment - Please share your configuration. Especially the regex for locating the WAR/EAR file.
          Hide
          jansohn Robin Jansohn added a comment -

          Try it with springboot_mybatis/target/*.war.

          Show
          jansohn Robin Jansohn added a comment - Try it with springboot_mybatis/target/*.war .
          Hide
          kunzhao kun zhao added a comment -

          config.pdf config2.pdf

          dear
          config front-end uploaded, still not work even located absolute path

          config1 console as below:

          Waiting for Jenkins to finish collecting data
          [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/pom.xml to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.pom
          [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/target/springboot_mybatis-2.2.4.RELEASE.war to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.war
          channel stopped
          ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception:
          java.lang.InterruptedException: [DeployPublisher][WARN] No wars found. Deploy aborted. %n
          at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:107)
          at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:112)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1074)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          at hudson.model.Run.execute(Run.java:1905)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:428)
          Finished: FAILURE

          config2 console as below:
          Waiting for Jenkins to finish collecting data
          [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/pom.xml to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.pom
          [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/target/springboot_mybatis-2.2.4.RELEASE.war to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.war
          channel stopped
          ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception:
          java.lang.InterruptedException: [DeployPublisher][WARN] No wars found. Deploy aborted. %n
          at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:107)
          at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:112)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1074)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          at hudson.model.Run.execute(Run.java:1905)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:428)
          Finished: FAILURE

          Show
          kunzhao kun zhao added a comment - config.pdf config2.pdf dear config front-end uploaded, still not work even located absolute path config1 console as below: Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/pom.xml to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.pom [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/target/springboot_mybatis-2.2.4.RELEASE.war to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.war channel stopped ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception: java.lang.InterruptedException: [DeployPublisher] [WARN] No wars found. Deploy aborted. %n at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:107) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:112) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1074) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1905) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428) Finished: FAILURE config2 console as below: Waiting for Jenkins to finish collecting data [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/pom.xml to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.pom [JENKINS] Archiving /var/lib/jenkins/workspace/web_login_maven/springboot_mybatis/target/springboot_mybatis-2.2.4.RELEASE.war to org.springframework.boot/springboot_mybatis/2.2.4.RELEASE/springboot_mybatis-2.2.4.RELEASE.war channel stopped ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception: java.lang.InterruptedException: [DeployPublisher] [WARN] No wars found. Deploy aborted. %n at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:107) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:112) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1074) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1905) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428) Finished: FAILURE
          Hide
          jansohn Robin Jansohn added a comment - - edited

          What about **/*.war?

          Show
          jansohn Robin Jansohn added a comment - - edited What about ** / *.war ?
          Hide
          kunzhao kun zhao added a comment -

          Try springboot_mybatis/target/*.war it's worked thanks.

          Show
          kunzhao kun zhao added a comment - Try springboot_mybatis/target/*.war it's worked thanks.

            People

            • Assignee:
              Unassigned
              Reporter:
              kunzhao kun zhao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: