@@ -34,6 +34,7 @@ curl -k --user <username>:<password> \
34
34
"data": {
35
35
"GIT_URL": "https://github.com/cfengine/masterfiles.git",
36
36
"GIT_REFSPEC": "master",
37
+ "PROJECT_SUBDIRECTORY": "path/to/policies",
37
38
"GIT_USERNAME": "username",
38
39
"GIT_PASSWORD": "passwordOrToken",
39
40
"GIT_WORKING_BRANCH": "CF_WORKING_BRANCH",
@@ -58,6 +59,9 @@ curl -k --user <username>:<password> \
58
59
Git repository URL ` Emp: https://github.com/cfengine/masterfiles.git ` . Required parameter.
59
60
* ** gitRefspec** * (string)*
60
61
The Git refspec to checkout. It can be a branch name, a tag name, a commit hash or a partial hash. Required parameter.
62
+ * ** projectSubdirectory** * (string)*
63
+ Subdirectory inside Git repository where the project is located.
64
+ Optional parameter.
61
65
* ** gitUsername** * (string)*
62
66
Git username for authentication, not needed for public repositories.
63
67
* ** gitPassword** * (string)*
@@ -75,6 +79,7 @@ curl -k --user <username>:<password> \
75
79
-d '{
76
80
"gitServer":"https://github.com/cfengine/masterfiles.git",
77
81
"gitRefspec":"master",
82
+ "projectSubdirectory":"",
78
83
"gitUsername":"gituser",
79
84
"gitPassword":"passwordOrToken",
80
85
"gitPrivateKey" "Private key raw content"
@@ -88,6 +93,7 @@ curl -k --user <username>:<password> \
88
93
{
89
94
"gitServer": "https://github.com/cfengine/masterfiles.git",
90
95
"gitRefspec": "master",
96
+ "projectSubdirectory": "",
91
97
"gitUsername": "gituser",
92
98
"gitPassword": "passwordOrToken",
93
99
"gitPrivateKey": "/opt/cfengine/userworkdir/admin/.ssh/id_rsa.pvt"
@@ -97,3 +103,4 @@ curl -k --user <username>:<password> \
97
103
## History
98
104
99
105
* ` vscType ` parameter added in 3.19.0, 3.18.1
106
+ * ` projectSubdirectory ` parameter added in 3.21.7, 3.24.2, 3.26.0
0 commit comments