Merge "Preserve Karaf logs in autorelease jobs"
[releng/builder.git] / jjb / autorelease / autorelease-templates.yaml
index 810686f6e8175f382599c36c41aa20068e2c2cce..651004d73e42321a0cfe04b39de8cc396910e936 100644 (file)
               $EXTRA_MVN_OPTS
               -Pintegrationtests,docs,repoBuild
               -Dcheckstyle.skip=true
+              -Dkaraf.keep.unpack=true
               -DaltDeploymentRepository=staging::default::file:hide/from/pom/files/stage
               {opendaylight-infra-mvn-opts}
           java-opts:
       - shell: |
           mkdir -p archives/
           cp *.log *.prop $_
+          for file in $(find . -name karaf.log); do
+              module="${{file%%/target/*}}"
+              module="${{module##*/}}"
+              cp "$file" "archives/${{module}}-karaf.log"
+          done
 
     publishers:
       - opendaylight-infra-notify-status
           goals: |
               clean validate
               -Pq
+              -Dkaraf.keep.unpack=true
               {opendaylight-infra-mvn-opts}
           java-opts:
             - '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
       - shell: |
           mkdir -p archives/
           cp *.log $_
+          for file in $(find . -name karaf.log); do
+              module="${{file%%/target/*}}"
+              module="${{module##*/}}"
+              cp "$file" "archives/${{module}}-karaf.log"
+          done
 
     publishers:
       - email-notification: