1- pluginName : EC-Github
2- version : 2.0.0
3- description : CloudBees Flow integration for Github API
4- author : Polina
5- authorUrl : pshubina@cloudbees.com
1+ pluginInfo :
2+ pluginName : EC-Github
3+ version : 2.1.0
4+ description : CloudBees Flow integration for Github API
5+ author : Polina
6+ authorUrl : pshubina@cloudbees.com
7+ category : Source Control
68
79
810configuration :
@@ -125,6 +127,91 @@ procedures:
125127 label : Asset Path
126128 type : entry
127129
130+ - name : Upload Files
131+ description : |
132+ This procedure uploads the provided files into the provided repository
133+ shell : ec-groovy
134+ hasConfig : true
135+ parameters :
136+ - name : ownerName
137+ required : true
138+ label : Repository Owner
139+ type : entry
140+ documentation : The name of the user or organization which owns the repository
141+ - name : repoName
142+ required : true
143+ label : Repository Name
144+ type : entry
145+ documentation : The name of the GH repository.
146+ - name : sourceDirectory
147+ required : false
148+ type : entry
149+ label : Source Directory
150+ documentation : |
151+ The directory resembling the repository source.
152+ If not provided, the current directory will be used.
153+ The relative paths of the files will be used to provide the path in the repository.
154+ - name : mapping
155+ documentation : |
156+ A mapping in JSON form to provide the path to file in the repository, e.g.
157+ {'file': "my/file"} where file is the path to the file relative to the source directory.
158+ type : textarea
159+ label : Mapping
160+ - name : files
161+ label : Files
162+ documentation : |
163+ A list of files relative to the source directory, newline-separated
164+ type : textarea
165+ - name : branch
166+ label : Branch
167+ value : master
168+ type : entry
169+ documentation : |
170+ A branch name to commit files to.
171+ If not master, the branch will be created from the master branch.
172+ - name : createPr
173+ type : checkbox
174+ label : Create Pull Request?
175+ checkedValue : true
176+ uncheckedValue : false
177+ documentation : |
178+ If checked, a PR will be created for the updated files.
179+
180+ - name : Get Files
181+ description : |
182+ This procedure fetches the content of the specified files and stores it in
183+ the filesystem or in the provided property
184+ shell : ec-groovy
185+ hasConfig : true
186+ parameters :
187+ - name : ownerName
188+ required : true
189+ label : Repository Owner
190+ type : entry
191+ documentation : The name of the user or organization which owns the repository
192+ - name : repoName
193+ required : true
194+ label : Repository Name
195+ type : entry
196+ documentation : The name of the GH repository.
197+ - name : files
198+ required : true
199+ label : Files
200+ documentation : |
201+ The newline-separated list of paths to the files
202+ type : textarea
203+ - name : destinationFolder
204+ required : false
205+ value : files
206+ label : Folder to Save Files
207+ type : entry
208+ documentation : The folder to save retrieved files, absolute or relative path
209+ - name : ref
210+ label : Git Reference
211+ required : false
212+ value : master
213+ documentation : Reference (branch, commit or tag to download file from)
214+
128215
129216 - name : Create Release
130217 description : This procedure can create a new Github Release or update an existing one.
@@ -148,6 +235,8 @@ procedures:
148235 value : recreate
149236 - name : Fail
150237 value : fail
238+ - name : Update
239+ value : update
151240
152241 - name : releaseName
153242 label : Release Name
@@ -187,4 +276,4 @@ procedures:
187276 label : Delete Old Tag?
188277 documentation : If checked, the old tag associated with the old release will be deleted.
189278 checkedValue : true
190- uncheckedValue : false
279+ uncheckedValue : false
0 commit comments