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

build project not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • deploy-plugin
    • Jenkins 2.235.1,Maven Integration plugin 3.6 ,tomcat 8.5

      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

        1. config.pdf
          456 kB
        2. config2.pdf
          487 kB
        3. path.jpg
          path.jpg
          357 kB
        4. image-2021-09-27-18-13-19-759.png
          image-2021-09-27-18-13-19-759.png
          29 kB

            Unassigned Unassigned
            kunzhao kun zhao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: