Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KPI Reporting Generator
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
KPI Reporting Generator
Commits
146eaa71
Commit
146eaa71
authored
2 years ago
by
Petar Hristov
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Try/Catch
parent
249b7f1f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!9
Fix: Try/Catch
Pipeline
#825302
passed
2 years ago
Stage: build
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/KPI Generator/Reportings/Complete/CompleteReporting.cs
+50
-19
50 additions, 19 deletions
src/KPI Generator/Reportings/Complete/CompleteReporting.cs
with
50 additions
and
19 deletions
src/KPI Generator/Reportings/Complete/CompleteReporting.cs
+
50
−
19
View file @
146eaa71
...
...
@@ -18,38 +18,69 @@ public class CompleteReporting : Reporting<CompleteReportingOptions>
var
result
=
new
List
<
ReportingFileObject
>();
// Project Reporting
try
{
result
.
AddRange
(
new
ProjectReporting
(
new
ProjectReportingOptions
{
DummyMode
=
Options
.
DummyMode
}).
GenerateReporting
());
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
$"Skipping ProjectReporting:
{
e
.
Message
}
"
);
}
// Resource Reporting
try
{
result
.
AddRange
(
new
ResourceReporting
(
new
ResourceReportingOptions
{
DummyMode
=
Options
.
DummyMode
}).
GenerateReporting
());
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
$"Skipping ResourceReporting:
{
e
.
Message
}
"
);
}
// User Reporting
try
{
result
.
AddRange
(
new
UserReporting
(
new
UserReportingOptions
{
DummyMode
=
Options
.
DummyMode
}).
GenerateReporting
());
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
$"Skipping UserReporting:
{
e
.
Message
}
"
);
}
// Application Profile Reporting
try
{
result
.
AddRange
(
new
ApplicationProfileReporting
(
new
ApplicationProfileReportingOptions
{
DummyMode
=
Options
.
DummyMode
}).
GenerateReporting
());
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
$"Skipping ApplicationProfileReporting:
{
e
.
Message
}
"
);
}
// System Status Reporting
try
{
result
.
AddRange
(
new
SystemReporting
(
new
SystemReportingOptions
{
DummyMode
=
Options
.
DummyMode
}).
GenerateReporting
());
}
catch
(
Exception
e
)
{
Console
.
WriteLine
(
$"Skipping SystemReporting:
{
e
.
Message
}
"
);
}
return
result
;
}
...
...
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