• 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. image-2021-09-27-18-13-19-759.png
          image-2021-09-27-18-13-19-759.png
          29 kB
        4. path.jpg
          path.jpg
          357 kB

          [JENKINS-62740] build project not correct

          Robin Jansohn added a comment -

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

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

          Robin Jansohn added a comment -

          Try it with springboot_mybatis/target/*.war.

          Robin Jansohn added a comment - Try it with springboot_mybatis/target/*.war .

          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

          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

          Robin Jansohn added a comment - - edited

          What about **/*.war?

          Robin Jansohn added a comment - - edited What about ** / *.war ?

          kun zhao added a comment -

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

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

          Bijaya added a comment -

          Hello I tried the above steps still gating  the error 
          [INFO] Replacing main artifact with repackaged archive
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESS
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 24.684 s
          [INFO] Finished at: 2021-09-27T17:59:22+05:30
          [INFO] ------------------------------------------------------------------------
          ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception:
          java.io.IOException: Expecting Ant GLOB pattern, but saw '/tta-app/target/tta-app-1.0.0.0.war'. See http://ant.apache.org/manual/Types/fileset.html
          for syntax
          at hudson.FilePath.glob(FilePath.java:2086)
          at hudson.FilePath.access$3400(FilePath.java:216)
          at hudson.FilePath$ListGlob.invoke(FilePath.java:2067)
          at hudson.FilePath$ListGlob.invoke(FilePath.java:2055)
          at hudson.FilePath.act(FilePath.java:1173)
          at hudson.FilePath.act(FilePath.java:1156)
          at hudson.FilePath.list(FilePath.java:2053)
          at hudson.FilePath.list(FilePath.java:2036)
          at hudson.FilePath.list(FilePath.java:2020)
          at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:105)
          at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
          at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
          at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:48)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:808)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757)
          at hudson.model.Build$BuildExecution.post2(Build.java:179)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:701)
          at hudson.model.Run.execute(Run.java:1914)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:100)
          at hudson.model.Executor.run(Executor.java:433)
          Posting build status of FAILED to ATCSBitbucket for commit id [f7237067e6d7048b612844e3a16368f564891707] and ref 'null'
          Finished: FAILURE
           
           
           
           
           
           

          Bijaya added a comment - Hello I tried the above steps still gating  the error  [INFO] Replacing main artifact with repackaged archive [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.684 s [INFO] Finished at: 2021-09-27T17:59:22+05:30 [INFO] ------------------------------------------------------------------------ ERROR: Step ‘Deploy war/ear to a container’ aborted due to exception: java.io.IOException: Expecting Ant GLOB pattern, but saw '/tta-app/target/tta-app-1.0.0.0.war'. See http://ant.apache.org/manual/Types/fileset.html for syntax at hudson.FilePath.glob(FilePath.java:2086) at hudson.FilePath.access$3400(FilePath.java:216) at hudson.FilePath$ListGlob.invoke(FilePath.java:2067) at hudson.FilePath$ListGlob.invoke(FilePath.java:2055) at hudson.FilePath.act(FilePath.java:1173) at hudson.FilePath.act(FilePath.java:1156) at hudson.FilePath.list(FilePath.java:2053) at hudson.FilePath.list(FilePath.java:2036) at hudson.FilePath.list(FilePath.java:2020) at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:105) at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:48) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:808) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) at hudson.model.Build$BuildExecution.post2(Build.java:179) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:701) at hudson.model.Run.execute(Run.java:1914) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:100) at hudson.model.Executor.run(Executor.java:433) Posting build status of FAILED to ATCSBitbucket for commit id [f7237067e6d7048b612844e3a16368f564891707] and ref 'null' Finished: FAILURE            

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

              Created:
              Updated:
              Resolved: