Skip to content

Commit 9b695e3

Browse files
authored
Make URSim log files available as artifacts also for the CI-industrial (#153)
1 parent 628833a commit 9b695e3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/industrial-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,21 @@ jobs:
7777
env: ${{matrix.env}}
7878
- uses: 'ros-industrial/industrial_ci@master'
7979
env: ${{matrix.env}}
80+
- name: Generate URSim log files
81+
if: always()
82+
run: |
83+
nc -q 1 192.168.56.101 29999 <<END
84+
saveLog
85+
END
86+
mkdir -p ursim_logs
87+
docker cp ursim:/ursim/URControl.log ursim_logs/URControl.log
88+
docker cp ursim:/ursim/polyscope.log ursim_logs/polyscope.log
89+
docker cp ursim:/ursim/log_history.txt ursim_logs/log_history.txt
90+
- name: Upload logfiles
91+
uses: actions/upload-artifact@v3
92+
if: always()
93+
with:
94+
name: ${{matrix.env.ROS_DISTRO}}_${{matrix.env.URSIM_VERSION}}_URSim_Logs
95+
path: ursim_logs
96+
if-no-files-found: error
97+
retention-days: 10

0 commit comments

Comments
 (0)