File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,20 @@ jobs:
118118 working-directory : temp
119119 run : ./../scripts/copyReportsIntoResults.sh
120120
121- # Upload the results in case they are needed for troubleshooting for a couple of days
122- - name : Archive results
121+ # Upload logs and unfinished reports in case of an error for troubleshooting
122+ - name : Archive failed run with logs and unfinished results
123+ if : failure()
124+ uses : actions/upload-artifact@v3
125+ with :
126+ name : code-analysis-logs-java-${{ matrix.java }}-python-${{ matrix.python }}-mambaforge-${{ matrix.mambaforge }}
127+ path : |
128+ ./temp/**/runtime/*
129+ ./results
130+ retention-days : 5
131+
132+ # Upload successful results in case they are needed for troubleshooting
133+ - name : Archive successful results
134+ if : success()
123135 uses : actions/upload-artifact@v3
124136 with :
125137 name : code-report-results-java-${{ matrix.java }}-python-${{ matrix.python }}-mambaforge-${{ matrix.mambaforge }}
You can’t perform that action at this time.
0 commit comments