Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Paas CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
INFN Cloud
Paas CI
Commits
bfbfcf61
Commit
bfbfcf61
authored
1 year ago
by
Gioacchino Vino
Browse files
Options
Downloads
Patches
Plain Diff
Managed missing endpoint keys input parameter
parent
c7db5ff5
No related branches found
Branches containing commit
No related tags found
1 merge request
!89
Debug paas ci
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/2-scan.yml
+6
-17
6 additions, 17 deletions
tasks/2-scan.yml
with
6 additions
and
17 deletions
tasks/2-scan.yml
+
6
−
17
View file @
bfbfcf61
...
@@ -3,9 +3,6 @@
...
@@ -3,9 +3,6 @@
-
name
:
Set SSH tunel
-
name
:
Set SSH tunel
command
:
ssh -o StrictHostKeyChecking=no -f -N -L localhost:9390:scans.cloud.infn.it:9390 jenkins@scans.cloud.infn.it
command
:
ssh -o StrictHostKeyChecking=no -f -N -L localhost:9390:scans.cloud.infn.it:9390 jenkins@scans.cloud.infn.it
-
debug
:
var
:
paas_ci_test.endpoints_to_scan
-
name
:
Copy scan script
-
name
:
Copy scan script
copy
:
copy
:
src
:
files/scan.py
src
:
files/scan.py
...
@@ -38,27 +35,19 @@
...
@@ -38,27 +35,19 @@
debug
:
debug
:
var
:
imported_depdep_log
var
:
imported_depdep_log
-
name
:
Show
BEFORE
paas_ci_test.endpoints_to_scan log
-
name
:
Show paas_ci_test.endpoints_to_scan log
debug
:
debug
:
var
:
paas_ci_test.endpoints_to_scan
var
:
paas_ci_test.endpoints_to_scan
-
name
:
Fail if "bar" is undefined
-
name
:
Run scan without endpoints_to_scan variable
set_fact
:
command
:
"
{{
paas_ci_workdir
+
'/scan.py'
}}
--dep-json
{{
paas_ci_workdir
+
'/dep.json'}}
--output-dir
{{
paas_ci_workdir
}}"
paas_ci_test.endpoints_to_scan
:
"
None"
register
:
scan_output
when
:
paas_ci_test.endpoints_to_scan is undefined
when
:
paas_ci_test.endpoints_to_scan is undefined
-
name
:
Show AFTER paas_ci_test.endpoints_to_scan log
-
name
:
Run scan with endpoints_to_scan variable
debug
:
var
:
paas_ci_test.endpoints_to_scan
-
name
:
Run scan
command
:
"
{{
paas_ci_workdir
+
'/scan.py'
}}
--endpoint-keys
{{
paas_ci_test.endpoints_to_scan
}}
--dep-json
{{
paas_ci_workdir
+
'/dep.json'}}
--output-dir
{{
paas_ci_workdir
}}"
command
:
"
{{
paas_ci_workdir
+
'/scan.py'
}}
--endpoint-keys
{{
paas_ci_test.endpoints_to_scan
}}
--dep-json
{{
paas_ci_workdir
+
'/dep.json'}}
--output-dir
{{
paas_ci_workdir
}}"
register
:
scan_output
register
:
scan_output
when
:
paas_ci_test.endpoints_to_scan is defined
-
name
:
Scan logs
debug
:
msg
:
"
{{
lookup('file',
item.path)
}}"
with_items
:
"
{{
paas_ci_workdir
+
'scan.log'
}}"
-
name
:
Show scan output
-
name
:
Show scan output
debug
:
debug
:
...
...
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