Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
flan
Commits
3ee04912
Commit
3ee04912
authored
2 years ago
by
Lukas Koenen
Browse files
Options
Downloads
Patches
Plain Diff
refactor: update report file dir structure
parent
53a04dcc
No related branches found
No related tags found
No related merge requests found
Pipeline
#134154
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run.sh
+8
-3
8 additions, 3 deletions
run.sh
with
8 additions
and
3 deletions
run.sh
+
8
−
3
View file @
3ee04912
...
...
@@ -16,12 +16,16 @@ root_dir=/shared
xml_dir
=
xml_files
report_dir
=
reports
report_file
=
report_
$current_time
.
$report_extension
xml_subdir
=
$xml_dir
/
$current_time
report_subdir
=
$report_dir
/
$current_time
report_file
=
report_
$current_time
.
$report_extension
if
[[
!
-z
$project
]]
then
xml_subdir
=
$xml_dir
/
$project
/
$current_time
report_subdir
=
$report_dir
/
$project
/
$current_time
report_file
=
report_
$project
\_
$current_time
.
$report_extension
fi
...
...
@@ -54,6 +58,7 @@ rm -rf $root_dir/$xml_dir/*
rm
-rf
$root_dir
/
$report_dir
/
*
mkdir
-p
$root_dir
/
$xml_subdir
mkdir
-p
$root_dir
/
$report_subdir
while
IFS
=
read
-r
line
do
...
...
@@ -71,7 +76,7 @@ do
upload
$xml_subdir
/
$filename
done
<
$root_dir
/ips.txt
python /output_report.py
$root_dir
/
$xml_subdir
$root_dir
/
$report_dir
/
$report_file
$root_dir
/ips.txt
python /output_report.py
$root_dir
/
$xml_subdir
$root_dir
/
$report_
sub
dir
/
$report_file
$root_dir
/ips.txt
if
[[
$report_extension
=
"tex"
]]
then
sed
-i
's/_/\\_/g'
$root_dir
/
$report_dir
/
$report_file
...
...
@@ -79,4 +84,4 @@ then
sed
-i
's/#/\\#/g'
$root_dir
/
$report_dir
/
$report_file
sed
-i
's/%/\\%/g'
$root_dir
/
$report_dir
/
$report_file
fi
upload
$report_dir
/
$report_file
upload
$report_
sub
dir
/
$report_file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment