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

Failed to properly handle sub project resource file replication for multi-module projects

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • gradle-plugin
    • None
    • jenkins 2.419
      gradle 8.3

       

      1. The project structure is as follows

      2. gradle config

       

      3. The xml file cannot be copied correctly after jenkins compilation.

      4. But calling gradle locally is fine

      4. If you do not empty the workspace, compile twice in a row, and the second time there is again
       

          [JENKINS-71868] Failed to properly handle sub project resource file replication for multi-module projects

          zxuanhong created issue -
          zxuanhong made changes -
          Attachment New: image-2023-08-22-18-11-44-667.png [ 61039 ]
          Description Original:  

          1. The project structure is as follows

          !image-2023-08-22-11-47-46-716.png!

          2. gradle config

           
          tasks.register('copyXml', Copy) {
          from layout.projectDirectory.dir("src/main/java")
          include "**/xml/*.xml"
          into layout.buildDirectory.dir("classes/java/main")
          }
          3. The xml file cannot be copied correctly after jenkins compilation.
          !image-2023-08-22-11-54-37-249.png!
          4. But calling gradle locally is fine
          !image-2023-08-22-11-50-26-262.png!
          4. If you do not empty the workspace, compile twice in a row, and the second time there is again
           
          !image-2023-08-22-11-56-21-643.png!
          New:  

          1. The project structure is as follows

          !image-2023-08-22-11-47-46-716.png!

          2. gradle config

           
          !image-2023-08-22-18-11-44-667.png!

          3. The xml file cannot be copied correctly after jenkins compilation.
          !image-2023-08-22-11-54-37-249.png!
          4. But calling gradle locally is fine
          !image-2023-08-22-11-50-26-262.png!
          4. If you do not empty the workspace, compile twice in a row, and the second time there is again
           
          !image-2023-08-22-11-56-21-643.png!
          zxuanhong made changes -
          Attachment New: image-2023-08-30-10-17-20-798.png [ 61073 ]
          zxuanhong made changes -
          Attachment New: image-2023-08-30-10-18-04-631.png [ 61074 ]
          Alexis made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Chetan made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: In Review [ 10005 ]
          Chetan made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]
          zxuanhong made changes -
          Resolution Original: Fixed [ 1 ] New: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Fixed but Unreleased [ 10203 ]
          zxuanhong made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Fixed but Unreleased [ 10203 ] New: Reopened [ 4 ]
          zxuanhong made changes -
          Comment [ [~atual] Thank you very much. This solution can solve my problem. ]
          zxuanhong made changes -
          Attachment New: image-2023-11-09-16-39-50-737.png [ 61451 ]

            wolfs Stefan Wolf
            zxuanhong zxuanhong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: