Skip to content

Commit 83081e8

Browse files
committed
new project format spec file added
1 parent 4b24cde commit 83081e8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/client/multi-image/manage_project_structure.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
Add on Image Version
3535
3636
usage: python3 manage_project_structure.py [-h] -u BASE_URL -t TOKEN_FILE [-pg PROJECT_GROUP] -p PROJECT_NAME -pv VERSION_NAME
37-
[-sp SUBPROJECT_LIST] [-nv] [-rm] [--clone-from CLONE_FROM] [--dry-run]
37+
[-sp SUBPROJECT_LIST | -ssf SUBPROJECT_SPEC_FILE] [-nv] [-rm] [--clone-from CLONE_FROM]
38+
[--dry-run] [-str STRING_TO_PUT_IN_FRONT_OF_SUBPROJECT_NAME]
3839
3940
options:
4041
-h, --help show this help message and exit
@@ -51,12 +52,13 @@
5152
-sp SUBPROJECT_LIST, --subproject-list SUBPROJECT_LIST
5253
List of subprojects to generate with subproject:container:tag
5354
-ssf SUBPROJECT_SPEC_FILE, --subproject-spec-file SUBPROJECT_SPEC_FILE
54-
Excel file containing subproject specification
55+
Excel or txt file containing subproject specification
5556
-nv, --no-verify Disable TLS certificate verification
5657
-rm, --remove Remove project structure with all subprojects (DANGEROUS!)
5758
--clone-from CLONE_FROM
5859
Main project version to use as template for cloning
5960
--dry-run Create structure only, do not execute scans
61+
-str STRING_TO_PUT_IN_FRONT_OF_SUBPROJECT_NAME, --string-to-put-in-front-of-subproject-name STRING_TO_PUT_IN_FRONT_OF_SUBPROJECT_NAME
6062
6163
Subprojects ae specified as subproject:[container]:[tag]
6264
if container name omited it will be set to subproject
@@ -67,6 +69,12 @@
6769
Container Name, Image ID, Version, Project Name
6870
and subsequent rows containing data
6971
72+
Sublrojects could be specified in a text file with -ssf --subproject-spec-file parameter
73+
Each line will have to contain full image specification.
74+
Specification will be parsed and image name prefixed by -str parameter will be used as a subproject name
75+
In this mode any image that is not residing on ciena.com repository will be skipped.
76+
If -str parameter is empty, Project Name will be used instead.
77+
7078
Container image name scanned will be written into project version nickname field
7179
7280

0 commit comments

Comments
 (0)