Uploaded image for project: 'FOLIO'
  1. FOLIO
  2. FOLIO-2935

Jenkins "deploy" stage failed due to file recreation issue

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      DevOps: Sprint 103, DevOps: Sprint 104, DevOps: Sprint 105
    • Development Team:
      FOLIO DevOps

      Description

      mod-password-validator cannot be built due to an issue with file recreation during "deploy" stage (https://jenkins-aws.indexdata.com/job/folio-org/job/mod-password-validator/job/master/28/consoleFull):

      [INFO] 
      [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ mod-password-validator ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 40 source files to /home/jenkins/workspace/rg_mod-password-validator_master/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /home/jenkins/workspace/rg_mod-password-validator_master/src/main/java/org/folio/pv/mapper/ValidationRuleMapper.java:[16,8] Internal error in the mapping processor: java.lang.RuntimeException: javax.annotation.processing.FilerException: Attempt to recreate a file for type org.folio.pv.mapper.ValidationRuleMapperImpl  	at org.mapstruct.ap.internal.processor.MapperRenderingProcessor.createSourceFile(MapperRenderingProcessor.java:59)  	at org.mapstruct.ap.internal.processor.MapperRenderingProcessor.writeToSourceFile(MapperRenderingProcessor.java:39)  	at org.mapstruct.ap.internal.processor.MapperRenderingProcessor.process(MapperRenderingProcessor.java:29)  	at org.mapstruct.ap.internal.processor.MapperRenderingProcessor.process(MapperRenderingProcessor.java:24)  	at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:283)  	at org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:263)  	at org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:221)  	at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:156)  	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:980)  	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:896)  	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1222)  	at jdk.compiler/com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1334)  	at
      

      I suspect "mvn -DskipTests deploy" has to include clean phase to remove the file previously generated during "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install org.jacoco:jacoco-maven-plugin:report"

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                malc John Malconian
                Reporter:
                dmtkachenko Dmytro Tkachenko
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases