Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RCE Workflow
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNICADO
RCE Workflow
Merge requests
!8
unicado_workflow: -bugFix: engines could not copied if the engine already exist -> status: fixed
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
unicado_workflow: -bugFix: engines could not copied if the engine already exist -> status: fixed
bugFix2
into
develop
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Andi
requested to merge
bugFix2
into
develop
6 months ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
engines could not copied if the engine already exist
0
0
Merge request reports
Compare
develop
version 1
bd074393
6 months ago
develop (base)
and
latest version
latest version
7d2413d5
2 commits,
5 months ago
version 1
bd074393
1 commit,
6 months ago
1 file
+
9
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
UNICADOworkflow/src/clean_up/post_operations_of_workflow.py
+
9
−
9
Options
@@ -411,23 +411,23 @@ def post_operations_of_workflow(paths_and_names, control_settings, parameter_for
+
aircraft_project
+
'
/engineData
'
)
for
engine
in
used_engines
:
engine_name
=
engine
.
find
(
'
./model/value
'
).
text
for
file
N
ame
in
files_in_engine_directory
:
for
file
_n
ame
in
files_in_engine_directory
:
# check if fileName a directory
if
file
N
ame
==
engine_name
:
if
file
_n
ame
==
engine_name
:
# if true -> delete engine data from project folder
if
os
.
path
.
isdir
(
path_of_working_directory_rce
+
current_workflow_name
+
'
/
'
+
aircraft_project
+
'
/engineData/
'
+
file
N
ame
)
and
\
(
fileName
not
in
path_of_working_directory_rce
+
current_workflow_name
+
'
/temporaryResults/engineData/
'
):
+
'
/engineData/
'
+
file
_n
ame
)
and
not
\
(
os
.
path
.
isdir
(
path_of_working_directory_rce
+
current_workflow_name
+
'
/temporaryResults/engineData/
'
+
file_name
)
):
source
=
path_of_working_directory_rce
+
current_workflow_name
+
'
/
'
+
aircraft_project
\
+
'
/engineData/
'
+
file
N
ame
+
'
/engineData/
'
+
file
_n
ame
destination
=
path_of_working_directory_rce
+
current_workflow_name
\
+
'
/temporaryResults/engineData/
'
+
file
N
ame
+
'
/temporaryResults/engineData/
'
+
file
_n
ame
shutil
.
copytree
(
source
,
destination
)
print
(
'
Engine
'
+
file
N
ame
+
'
has been successfully copied to results folder!
'
)
print
(
'
Engine
'
+
file
_n
ame
+
'
has been successfully copied to results folder!
'
)
log_file_list
.
append
(
str
(
datetime
.
now
().
strftime
(
'
%Y-%m-%d %H:%M:%S
'
))
+
'
:
'
'
Engine
'
+
file
N
ame
+
'
has been successfully copied to results folder!
'
)
'
Engine
'
+
file
_n
ame
+
'
has been successfully copied to results folder!
'
)
'''
copy results of current workflow loop and clean up temporary directory
'''
# call clean-up function of workflow to copy final results to workflow results directory
Loading