pulp_deb_client 2.17.1 → 2.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -7
- data/docs/ContentGenericContentsApi.md +5 -3
- data/docs/ContentInstallerFileIndicesApi.md +2 -2
- data/docs/ContentInstallerPackagesApi.md +5 -3
- data/docs/ContentPackageIndicesApi.md +2 -2
- data/docs/ContentPackageReleaseComponentsApi.md +2 -2
- data/docs/ContentPackagesApi.md +5 -3
- data/docs/ContentReleaseArchitecturesApi.md +2 -2
- data/docs/ContentReleaseComponentsApi.md +2 -2
- data/docs/ContentReleaseFilesApi.md +2 -2
- data/docs/ContentReleasesApi.md +2 -2
- data/docs/Copy.md +21 -0
- data/docs/DebAptRemote.md +2 -2
- data/docs/DebBasePackage.md +3 -1
- data/docs/DebCopyApi.md +62 -0
- data/docs/DebGenericContent.md +3 -1
- data/docs/DistributionsAptApi.md +2 -2
- data/docs/PatcheddebAptRemote.md +2 -2
- data/docs/PublicationsAptApi.md +4 -2
- data/docs/PublicationsVerbatimApi.md +4 -2
- data/docs/RemotesAptApi.md +2 -2
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesAptApi.md +2 -2
- data/docs/RepositoriesAptVersionsApi.md +6 -6
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +10 -3
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +10 -3
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_packages_api.rb +10 -3
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_release_components_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_release_files_api.rb +7 -3
- data/lib/pulp_deb_client/api/content_releases_api.rb +7 -3
- data/lib/pulp_deb_client/api/deb_copy_api.rb +86 -0
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +7 -3
- data/lib/pulp_deb_client/api/publications_apt_api.rb +10 -3
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +10 -3
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +7 -3
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +7 -3
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +16 -12
- data/lib/pulp_deb_client/models/{content_summary.rb → copy.rb} +33 -42
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +2 -2
- data/lib/pulp_deb_client/models/deb_base_package.rb +14 -4
- data/lib/pulp_deb_client/models/deb_generic_content.rb +14 -4
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +2 -2
- data/lib/pulp_deb_client/models/{repository_version.rb → repair.rb} +13 -12
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +3 -2
- data/pulp_deb_client.gemspec +3 -3
- data/spec/api/content_generic_contents_api_spec.rb +2 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
- data/spec/api/content_installer_packages_api_spec.rb +2 -1
- data/spec/api/content_package_indices_api_spec.rb +1 -1
- data/spec/api/content_package_release_components_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +2 -1
- data/spec/api/content_release_architectures_api_spec.rb +1 -1
- data/spec/api/content_release_components_api_spec.rb +1 -1
- data/spec/api/content_release_files_api_spec.rb +1 -1
- data/spec/api/content_releases_api_spec.rb +1 -1
- data/spec/api/deb_copy_api_spec.rb +47 -0
- data/spec/api/distributions_apt_api_spec.rb +1 -1
- data/spec/api/publications_apt_api_spec.rb +2 -1
- data/spec/api/publications_verbatim_api_spec.rb +2 -1
- data/spec/api/remotes_apt_api_spec.rb +1 -1
- data/spec/api/repositories_apt_api_spec.rb +1 -1
- data/spec/api/repositories_apt_versions_api_spec.rb +2 -2
- data/spec/models/{content_summary_spec.rb → copy_spec.rb} +9 -9
- data/spec/models/deb_base_package_spec.rb +6 -0
- data/spec/models/deb_generic_content_spec.rb +6 -0
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +68 -65
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/git_push.sh +0 -58
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_deb_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.17'
|
20
20
|
- - "<"
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0.17'
|
30
30
|
- - "<"
|
@@ -91,8 +91,8 @@ files:
|
|
91
91
|
- docs/ContentReleaseComponentsApi.md
|
92
92
|
- docs/ContentReleaseFilesApi.md
|
93
93
|
- docs/ContentReleasesApi.md
|
94
|
-
- docs/ContentSummary.md
|
95
94
|
- docs/ContentSummaryResponse.md
|
95
|
+
- docs/Copy.md
|
96
96
|
- docs/DebAptDistribution.md
|
97
97
|
- docs/DebAptDistributionResponse.md
|
98
98
|
- docs/DebAptPublication.md
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- docs/DebAptRepositoryResponse.md
|
104
104
|
- docs/DebBasePackage.md
|
105
105
|
- docs/DebBasePackageResponse.md
|
106
|
+
- docs/DebCopyApi.md
|
106
107
|
- docs/DebGenericContent.md
|
107
108
|
- docs/DebGenericContentResponse.md
|
108
109
|
- docs/DebInstallerFileIndex.md
|
@@ -144,13 +145,12 @@ files:
|
|
144
145
|
- docs/PublicationsAptApi.md
|
145
146
|
- docs/PublicationsVerbatimApi.md
|
146
147
|
- docs/RemotesAptApi.md
|
148
|
+
- docs/Repair.md
|
147
149
|
- docs/RepositoriesAptApi.md
|
148
150
|
- docs/RepositoriesAptVersionsApi.md
|
149
151
|
- docs/RepositoryAddRemoveContent.md
|
150
152
|
- docs/RepositorySyncURL.md
|
151
|
-
- docs/RepositoryVersion.md
|
152
153
|
- docs/RepositoryVersionResponse.md
|
153
|
-
- git_push.sh
|
154
154
|
- lib/pulp_deb_client.rb
|
155
155
|
- lib/pulp_deb_client/api/content_generic_contents_api.rb
|
156
156
|
- lib/pulp_deb_client/api/content_installer_file_indices_api.rb
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/pulp_deb_client/api/content_release_components_api.rb
|
163
163
|
- lib/pulp_deb_client/api/content_release_files_api.rb
|
164
164
|
- lib/pulp_deb_client/api/content_releases_api.rb
|
165
|
+
- lib/pulp_deb_client/api/deb_copy_api.rb
|
165
166
|
- lib/pulp_deb_client/api/distributions_apt_api.rb
|
166
167
|
- lib/pulp_deb_client/api/publications_apt_api.rb
|
167
168
|
- lib/pulp_deb_client/api/publications_verbatim_api.rb
|
@@ -172,8 +173,8 @@ files:
|
|
172
173
|
- lib/pulp_deb_client/api_error.rb
|
173
174
|
- lib/pulp_deb_client/configuration.rb
|
174
175
|
- lib/pulp_deb_client/models/async_operation_response.rb
|
175
|
-
- lib/pulp_deb_client/models/content_summary.rb
|
176
176
|
- lib/pulp_deb_client/models/content_summary_response.rb
|
177
|
+
- lib/pulp_deb_client/models/copy.rb
|
177
178
|
- lib/pulp_deb_client/models/deb_apt_distribution.rb
|
178
179
|
- lib/pulp_deb_client/models/deb_apt_distribution_response.rb
|
179
180
|
- lib/pulp_deb_client/models/deb_apt_publication.rb
|
@@ -221,9 +222,9 @@ files:
|
|
221
222
|
- lib/pulp_deb_client/models/patcheddeb_apt_remote.rb
|
222
223
|
- lib/pulp_deb_client/models/patcheddeb_apt_repository.rb
|
223
224
|
- lib/pulp_deb_client/models/policy_enum.rb
|
225
|
+
- lib/pulp_deb_client/models/repair.rb
|
224
226
|
- lib/pulp_deb_client/models/repository_add_remove_content.rb
|
225
227
|
- lib/pulp_deb_client/models/repository_sync_url.rb
|
226
|
-
- lib/pulp_deb_client/models/repository_version.rb
|
227
228
|
- lib/pulp_deb_client/models/repository_version_response.rb
|
228
229
|
- lib/pulp_deb_client/version.rb
|
229
230
|
- pulp_deb_client.gemspec
|
@@ -237,6 +238,7 @@ files:
|
|
237
238
|
- spec/api/content_release_components_api_spec.rb
|
238
239
|
- spec/api/content_release_files_api_spec.rb
|
239
240
|
- spec/api/content_releases_api_spec.rb
|
241
|
+
- spec/api/deb_copy_api_spec.rb
|
240
242
|
- spec/api/distributions_apt_api_spec.rb
|
241
243
|
- spec/api/publications_apt_api_spec.rb
|
242
244
|
- spec/api/publications_verbatim_api_spec.rb
|
@@ -247,7 +249,7 @@ files:
|
|
247
249
|
- spec/configuration_spec.rb
|
248
250
|
- spec/models/async_operation_response_spec.rb
|
249
251
|
- spec/models/content_summary_response_spec.rb
|
250
|
-
- spec/models/
|
252
|
+
- spec/models/copy_spec.rb
|
251
253
|
- spec/models/deb_apt_distribution_response_spec.rb
|
252
254
|
- spec/models/deb_apt_distribution_spec.rb
|
253
255
|
- spec/models/deb_apt_publication_response_spec.rb
|
@@ -295,14 +297,14 @@ files:
|
|
295
297
|
- spec/models/patcheddeb_apt_remote_spec.rb
|
296
298
|
- spec/models/patcheddeb_apt_repository_spec.rb
|
297
299
|
- spec/models/policy_enum_spec.rb
|
300
|
+
- spec/models/repair_spec.rb
|
298
301
|
- spec/models/repository_add_remove_content_spec.rb
|
299
302
|
- spec/models/repository_sync_url_spec.rb
|
300
303
|
- spec/models/repository_version_response_spec.rb
|
301
|
-
- spec/models/repository_version_spec.rb
|
302
304
|
- spec/spec_helper.rb
|
303
|
-
homepage: https://
|
305
|
+
homepage: https://github.com/pulp/pulp_deb
|
304
306
|
licenses:
|
305
|
-
-
|
307
|
+
- GPLv2+
|
306
308
|
metadata: {}
|
307
309
|
post_install_message:
|
308
310
|
rdoc_options: []
|
@@ -325,75 +327,76 @@ specification_version: 4
|
|
325
327
|
summary: Pulp 3 API Ruby Gem
|
326
328
|
test_files:
|
327
329
|
- spec/api/content_installer_packages_api_spec.rb
|
328
|
-
- spec/api/
|
329
|
-
- spec/api/content_releases_api_spec.rb
|
330
|
+
- spec/api/content_release_architectures_api_spec.rb
|
330
331
|
- spec/api/content_release_components_api_spec.rb
|
331
|
-
- spec/api/repositories_apt_api_spec.rb
|
332
|
-
- spec/api/distributions_apt_api_spec.rb
|
333
|
-
- spec/api/repositories_apt_versions_api_spec.rb
|
334
332
|
- spec/api/content_package_indices_api_spec.rb
|
335
|
-
- spec/api/
|
336
|
-
- spec/api/
|
333
|
+
- spec/api/content_installer_file_indices_api_spec.rb
|
334
|
+
- spec/api/deb_copy_api_spec.rb
|
335
|
+
- spec/api/content_generic_contents_api_spec.rb
|
336
|
+
- spec/api/remotes_apt_api_spec.rb
|
337
|
+
- spec/api/repositories_apt_versions_api_spec.rb
|
337
338
|
- spec/api/content_packages_api_spec.rb
|
339
|
+
- spec/api/repositories_apt_api_spec.rb
|
340
|
+
- spec/api/content_release_files_api_spec.rb
|
341
|
+
- spec/api/distributions_apt_api_spec.rb
|
338
342
|
- spec/api/publications_verbatim_api_spec.rb
|
339
343
|
- spec/api/publications_apt_api_spec.rb
|
340
|
-
- spec/api/
|
341
|
-
- spec/api/
|
342
|
-
- spec/api/content_installer_file_indices_api_spec.rb
|
344
|
+
- spec/api/content_package_release_components_api_spec.rb
|
345
|
+
- spec/api/content_releases_api_spec.rb
|
343
346
|
- spec/api_client_spec.rb
|
344
347
|
- spec/configuration_spec.rb
|
345
|
-
- spec/models/
|
346
|
-
- spec/models/
|
347
|
-
- spec/models/
|
348
|
+
- spec/models/deb_package_index_response_spec.rb
|
349
|
+
- spec/models/paginateddeb_installer_file_index_response_list_spec.rb
|
350
|
+
- spec/models/paginateddeb_release_file_response_list_spec.rb
|
351
|
+
- spec/models/deb_verbatim_publication_spec.rb
|
352
|
+
- spec/models/async_operation_response_spec.rb
|
353
|
+
- spec/models/deb_apt_repository_response_spec.rb
|
354
|
+
- spec/models/paginateddeb_package_release_component_response_list_spec.rb
|
355
|
+
- spec/models/deb_base_package_spec.rb
|
348
356
|
- spec/models/deb_apt_distribution_response_spec.rb
|
349
|
-
- spec/models/
|
357
|
+
- spec/models/repair_spec.rb
|
358
|
+
- spec/models/paginateddeb_release_architecture_response_list_spec.rb
|
350
359
|
- spec/models/deb_verbatim_publication_response_spec.rb
|
351
|
-
- spec/models/
|
352
|
-
- spec/models/
|
360
|
+
- spec/models/repository_version_response_spec.rb
|
361
|
+
- spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
|
353
362
|
- spec/models/deb_generic_content_response_spec.rb
|
354
|
-
- spec/models/repository_version_spec.rb
|
355
|
-
- spec/models/deb_apt_publication_response_spec.rb
|
356
|
-
- spec/models/patcheddeb_apt_repository_spec.rb
|
357
|
-
- spec/models/deb_verbatim_publication_spec.rb
|
358
|
-
- spec/models/paginateddeb_apt_remote_response_list_spec.rb
|
359
|
-
- spec/models/repository_add_remove_content_spec.rb
|
360
|
-
- spec/models/deb_installer_file_index_spec.rb
|
361
363
|
- spec/models/repository_sync_url_spec.rb
|
362
|
-
- spec/models/deb_base_package_spec.rb
|
363
|
-
- spec/models/deb_package_index_spec.rb
|
364
|
-
- spec/models/paginateddeb_apt_repository_response_list_spec.rb
|
365
|
-
- spec/models/content_summary_response_spec.rb
|
366
364
|
- spec/models/deb_installer_file_index_response_spec.rb
|
367
|
-
- spec/models/
|
365
|
+
- spec/models/policy_enum_spec.rb
|
366
|
+
- spec/models/deb_release_file_spec.rb
|
367
|
+
- spec/models/deb_release_architecture_response_spec.rb
|
368
|
+
- spec/models/deb_release_architecture_spec.rb
|
369
|
+
- spec/models/repository_add_remove_content_spec.rb
|
370
|
+
- spec/models/patcheddeb_apt_distribution_spec.rb
|
371
|
+
- spec/models/deb_installer_file_index_spec.rb
|
372
|
+
- spec/models/deb_apt_publication_response_spec.rb
|
373
|
+
- spec/models/deb_package_release_component_spec.rb
|
368
374
|
- spec/models/paginateddeb_apt_distribution_response_list_spec.rb
|
375
|
+
- spec/models/paginateddeb_release_response_list_spec.rb
|
376
|
+
- spec/models/patcheddeb_apt_repository_spec.rb
|
369
377
|
- spec/models/deb_release_spec.rb
|
370
|
-
- spec/models/
|
371
|
-
- spec/models/
|
372
|
-
- spec/models/
|
373
|
-
- spec/models/
|
378
|
+
- spec/models/deb_generic_content_spec.rb
|
379
|
+
- spec/models/deb_release_component_response_spec.rb
|
380
|
+
- spec/models/deb_base_package_response_spec.rb
|
381
|
+
- spec/models/patcheddeb_apt_remote_spec.rb
|
382
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
374
383
|
- spec/models/deb_apt_remote_spec.rb
|
375
|
-
- spec/models/deb_release_architecture_spec.rb
|
376
|
-
- spec/models/deb_package_release_component_spec.rb
|
377
|
-
- spec/models/policy_enum_spec.rb
|
378
|
-
- spec/models/deb_release_file_spec.rb
|
379
|
-
- spec/models/paginateddeb_release_file_response_list_spec.rb
|
380
384
|
- spec/models/deb_apt_publication_spec.rb
|
385
|
+
- spec/models/paginateddeb_apt_remote_response_list_spec.rb
|
381
386
|
- spec/models/paginateddeb_package_index_response_list_spec.rb
|
382
|
-
- spec/models/
|
383
|
-
- spec/models/
|
384
|
-
- spec/models/deb_apt_repository_response_spec.rb
|
385
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
386
|
-
- spec/models/deb_release_response_spec.rb
|
387
|
-
- spec/models/patcheddeb_apt_distribution_spec.rb
|
388
|
-
- spec/models/repository_version_response_spec.rb
|
389
|
-
- spec/models/patcheddeb_apt_remote_spec.rb
|
390
|
-
- spec/models/deb_package_index_response_spec.rb
|
391
|
-
- spec/models/content_summary_spec.rb
|
392
|
-
- spec/models/paginateddeb_base_package_response_list_spec.rb
|
387
|
+
- spec/models/paginateddeb_release_component_response_list_spec.rb
|
388
|
+
- spec/models/deb_package_index_spec.rb
|
393
389
|
- spec/models/paginateddeb_generic_content_response_list_spec.rb
|
394
|
-
- spec/models/
|
395
|
-
- spec/models/
|
390
|
+
- spec/models/deb_package_release_component_response_spec.rb
|
391
|
+
- spec/models/paginateddeb_base_package_response_list_spec.rb
|
392
|
+
- spec/models/copy_spec.rb
|
393
|
+
- spec/models/deb_release_component_spec.rb
|
394
|
+
- spec/models/paginateddeb_apt_repository_response_list_spec.rb
|
395
|
+
- spec/models/deb_apt_remote_response_spec.rb
|
396
|
+
- spec/models/deb_apt_distribution_spec.rb
|
397
|
+
- spec/models/content_summary_response_spec.rb
|
396
398
|
- spec/models/deb_release_file_response_spec.rb
|
397
|
-
- spec/models/
|
398
|
-
- spec/models/
|
399
|
+
- spec/models/deb_apt_repository_spec.rb
|
400
|
+
- spec/models/deb_release_response_spec.rb
|
401
|
+
- spec/models/paginateddeb_apt_publication_response_list_spec.rb
|
399
402
|
- spec/spec_helper.rb
|
data/docs/ContentSummary.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# PulpDebClient::ContentSummary
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**added** | **Hash<String, Object>** | |
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
9
|
-
**present** | **Hash<String, Object>** | |
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'PulpDebClient'
|
15
|
-
|
16
|
-
instance = PulpDebClient::ContentSummary.new(added: null,
|
17
|
-
removed: null,
|
18
|
-
present: null)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
data/docs/RepositoryVersion.md
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# PulpDebClient::RepositoryVersion
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'PulpDebClient'
|
13
|
-
|
14
|
-
instance = PulpDebClient::RepositoryVersion.new(base_version: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/git_push.sh
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
-
#
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
-
|
6
|
-
git_user_id=$1
|
7
|
-
git_repo_id=$2
|
8
|
-
release_note=$3
|
9
|
-
git_host=$4
|
10
|
-
|
11
|
-
if [ "$git_host" = "" ]; then
|
12
|
-
git_host="github.com"
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
-
fi
|
15
|
-
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
17
|
-
git_user_id="GIT_USER_ID"
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
-
fi
|
20
|
-
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
-
fi
|
25
|
-
|
26
|
-
if [ "$release_note" = "" ]; then
|
27
|
-
release_note="Minor update"
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
-
fi
|
30
|
-
|
31
|
-
# Initialize the local directory as a Git repository
|
32
|
-
git init
|
33
|
-
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
35
|
-
git add .
|
36
|
-
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
-
git commit -m "$release_note"
|
39
|
-
|
40
|
-
# Sets the new remote
|
41
|
-
git_remote=`git remote`
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
-
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
-
else
|
48
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
-
fi
|
50
|
-
|
51
|
-
fi
|
52
|
-
|
53
|
-
git pull origin master
|
54
|
-
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|
58
|
-
|