bt_test 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +187 -0
- data/Rakefile +10 -0
- data/bt_test.gemspec +38 -0
- data/docs/CreateGoalRequest.md +18 -0
- data/docs/CreateProjectRequest.md +26 -0
- data/docs/CreateProjectsTagRequest.md +18 -0
- data/docs/CreateScaffoldingAbsolutelyAbstractCreativeConceptRequest.md +20 -0
- data/docs/CreateTeamRequest.md +20 -0
- data/docs/CreateWebhooksOutgoingEndpointRequest.md +22 -0
- data/docs/Goal.md +18 -0
- data/docs/GoalData.md +24 -0
- data/docs/GoalDataAttributes.md +24 -0
- data/docs/GoalDataRelationships.md +18 -0
- data/docs/Me.md +18 -0
- data/docs/MeData.md +24 -0
- data/docs/MeDataAttributes.md +38 -0
- data/docs/MeDataRelationships.md +20 -0
- data/docs/PlatformApi.md +2834 -0
- data/docs/Project.md +18 -0
- data/docs/ProjectData.md +24 -0
- data/docs/ProjectDataAttributes.md +24 -0
- data/docs/ProjectDataRelationships.md +26 -0
- data/docs/ProjectDataRelationshipsTags.md +18 -0
- data/docs/ProjectsTag.md +18 -0
- data/docs/ProjectsTagData.md +24 -0
- data/docs/ProjectsTagDataAttributes.md +22 -0
- data/docs/ProjectsTagDataRelationships.md +20 -0
- data/docs/ProjectsTagDataRelationshipsTeam.md +18 -0
- data/docs/ProjectsTagDataRelationshipsTeamData.md +20 -0
- data/docs/ScaffoldingAbsolutelyAbstractCreativeConcept.md +18 -0
- data/docs/ScaffoldingAbsolutelyAbstractCreativeConceptData.md +24 -0
- data/docs/ScaffoldingAbsolutelyAbstractCreativeConceptDataAttributes.md +28 -0
- data/docs/ScaffoldingAbsolutelyAbstractCreativeConceptDataRelationships.md +20 -0
- data/docs/ScaffoldingCompletelyConcreteTangibleThing.md +18 -0
- data/docs/ScaffoldingCompletelyConcreteTangibleThingData.md +24 -0
- data/docs/ScaffoldingCompletelyConcreteTangibleThingDataAttributes.md +46 -0
- data/docs/ScaffoldingCompletelyConcreteTangibleThingDataRelationships.md +18 -0
- data/docs/Team.md +18 -0
- data/docs/TeamData.md +24 -0
- data/docs/TeamDataAttributes.md +28 -0
- data/docs/TeamDataRelationships.md +18 -0
- data/docs/UpdateScaffoldingCompletelyConcreteTangibleThingRequest.md +46 -0
- data/docs/WebhooksOutgoingDelivery.md +18 -0
- data/docs/WebhooksOutgoingDeliveryAttempt.md +18 -0
- data/docs/WebhooksOutgoingDeliveryAttemptData.md +24 -0
- data/docs/WebhooksOutgoingDeliveryAttemptDataAttributes.md +34 -0
- data/docs/WebhooksOutgoingDeliveryAttemptDataRelationships.md +18 -0
- data/docs/WebhooksOutgoingDeliveryData.md +24 -0
- data/docs/WebhooksOutgoingDeliveryDataAttributes.md +30 -0
- data/docs/WebhooksOutgoingDeliveryDataRelationships.md +18 -0
- data/docs/WebhooksOutgoingEndpoint.md +18 -0
- data/docs/WebhooksOutgoingEndpointData.md +24 -0
- data/docs/WebhooksOutgoingEndpointDataAttributes.md +28 -0
- data/docs/WebhooksOutgoingEndpointDataRelationships.md +18 -0
- data/git_push.sh +57 -0
- data/lib/bt_test/api/platform_api.rb +2523 -0
- data/lib/bt_test/api_client.rb +392 -0
- data/lib/bt_test/api_error.rb +57 -0
- data/lib/bt_test/configuration.rb +280 -0
- data/lib/bt_test/models/create_goal_request.rb +220 -0
- data/lib/bt_test/models/create_project_request.rb +262 -0
- data/lib/bt_test/models/create_projects_tag_request.rb +220 -0
- data/lib/bt_test/models/create_scaffolding_absolutely_abstract_creative_concept_request.rb +230 -0
- data/lib/bt_test/models/create_team_request.rb +230 -0
- data/lib/bt_test/models/create_webhooks_outgoing_endpoint_request.rb +242 -0
- data/lib/bt_test/models/goal.rb +220 -0
- data/lib/bt_test/models/goal_data.rb +246 -0
- data/lib/bt_test/models/goal_data_attributes.rb +246 -0
- data/lib/bt_test/models/goal_data_relationships.rb +219 -0
- data/lib/bt_test/models/me.rb +220 -0
- data/lib/bt_test/models/me_data.rb +246 -0
- data/lib/bt_test/models/me_data_attributes.rb +309 -0
- data/lib/bt_test/models/me_data_relationships.rb +228 -0
- data/lib/bt_test/models/project.rb +220 -0
- data/lib/bt_test/models/project_data.rb +246 -0
- data/lib/bt_test/models/project_data_attributes.rb +246 -0
- data/lib/bt_test/models/project_data_relationships.rb +255 -0
- data/lib/bt_test/models/project_data_relationships_tags.rb +221 -0
- data/lib/bt_test/models/projects_tag.rb +220 -0
- data/lib/bt_test/models/projects_tag_data.rb +246 -0
- data/lib/bt_test/models/projects_tag_data_attributes.rb +237 -0
- data/lib/bt_test/models/projects_tag_data_relationships.rb +228 -0
- data/lib/bt_test/models/projects_tag_data_relationships_team.rb +219 -0
- data/lib/bt_test/models/projects_tag_data_relationships_team_data.rb +228 -0
- data/lib/bt_test/models/scaffolding_absolutely_abstract_creative_concept.rb +220 -0
- data/lib/bt_test/models/scaffolding_absolutely_abstract_creative_concept_data.rb +246 -0
- data/lib/bt_test/models/scaffolding_absolutely_abstract_creative_concept_data_attributes.rb +264 -0
- data/lib/bt_test/models/scaffolding_absolutely_abstract_creative_concept_data_relationships.rb +228 -0
- data/lib/bt_test/models/scaffolding_completely_concrete_tangible_thing.rb +220 -0
- data/lib/bt_test/models/scaffolding_completely_concrete_tangible_thing_data.rb +246 -0
- data/lib/bt_test/models/scaffolding_completely_concrete_tangible_thing_data_attributes.rb +345 -0
- data/lib/bt_test/models/scaffolding_completely_concrete_tangible_thing_data_relationships.rb +219 -0
- data/lib/bt_test/models/team.rb +220 -0
- data/lib/bt_test/models/team_data.rb +246 -0
- data/lib/bt_test/models/team_data_attributes.rb +264 -0
- data/lib/bt_test/models/team_data_relationships.rb +219 -0
- data/lib/bt_test/models/update_scaffolding_completely_concrete_tangible_thing_request.rb +366 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery.rb +220 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_attempt.rb +220 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_attempt_data.rb +246 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_attempt_data_attributes.rb +291 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_attempt_data_relationships.rb +219 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_data.rb +246 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_data_attributes.rb +273 -0
- data/lib/bt_test/models/webhooks_outgoing_delivery_data_relationships.rb +219 -0
- data/lib/bt_test/models/webhooks_outgoing_endpoint.rb +220 -0
- data/lib/bt_test/models/webhooks_outgoing_endpoint_data.rb +246 -0
- data/lib/bt_test/models/webhooks_outgoing_endpoint_data_attributes.rb +264 -0
- data/lib/bt_test/models/webhooks_outgoing_endpoint_data_relationships.rb +219 -0
- data/lib/bt_test/version.rb +15 -0
- data/lib/bt_test.rb +90 -0
- data/spec/api/platform_api_spec.rb +493 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/create_goal_request_spec.rb +34 -0
- data/spec/models/create_project_request_spec.rb +58 -0
- data/spec/models/create_projects_tag_request_spec.rb +34 -0
- data/spec/models/create_scaffolding_absolutely_abstract_creative_concept_request_spec.rb +40 -0
- data/spec/models/create_team_request_spec.rb +40 -0
- data/spec/models/create_webhooks_outgoing_endpoint_request_spec.rb +46 -0
- data/spec/models/goal_data_attributes_spec.rb +52 -0
- data/spec/models/goal_data_relationships_spec.rb +34 -0
- data/spec/models/goal_data_spec.rb +52 -0
- data/spec/models/goal_spec.rb +34 -0
- data/spec/models/me_data_attributes_spec.rb +94 -0
- data/spec/models/me_data_relationships_spec.rb +40 -0
- data/spec/models/me_data_spec.rb +52 -0
- data/spec/models/me_spec.rb +34 -0
- data/spec/models/project_data_attributes_spec.rb +52 -0
- data/spec/models/project_data_relationships_spec.rb +58 -0
- data/spec/models/project_data_relationships_tags_spec.rb +34 -0
- data/spec/models/project_data_spec.rb +52 -0
- data/spec/models/project_spec.rb +34 -0
- data/spec/models/projects_tag_data_attributes_spec.rb +46 -0
- data/spec/models/projects_tag_data_relationships_spec.rb +40 -0
- data/spec/models/projects_tag_data_relationships_team_data_spec.rb +40 -0
- data/spec/models/projects_tag_data_relationships_team_spec.rb +34 -0
- data/spec/models/projects_tag_data_spec.rb +52 -0
- data/spec/models/projects_tag_spec.rb +34 -0
- data/spec/models/scaffolding_absolutely_abstract_creative_concept_data_attributes_spec.rb +64 -0
- data/spec/models/scaffolding_absolutely_abstract_creative_concept_data_relationships_spec.rb +40 -0
- data/spec/models/scaffolding_absolutely_abstract_creative_concept_data_spec.rb +52 -0
- data/spec/models/scaffolding_absolutely_abstract_creative_concept_spec.rb +34 -0
- data/spec/models/scaffolding_completely_concrete_tangible_thing_data_attributes_spec.rb +118 -0
- data/spec/models/scaffolding_completely_concrete_tangible_thing_data_relationships_spec.rb +34 -0
- data/spec/models/scaffolding_completely_concrete_tangible_thing_data_spec.rb +52 -0
- data/spec/models/scaffolding_completely_concrete_tangible_thing_spec.rb +34 -0
- data/spec/models/team_data_attributes_spec.rb +64 -0
- data/spec/models/team_data_relationships_spec.rb +34 -0
- data/spec/models/team_data_spec.rb +52 -0
- data/spec/models/team_spec.rb +34 -0
- data/spec/models/update_scaffolding_completely_concrete_tangible_thing_request_spec.rb +118 -0
- data/spec/models/webhooks_outgoing_delivery_attempt_data_attributes_spec.rb +82 -0
- data/spec/models/webhooks_outgoing_delivery_attempt_data_relationships_spec.rb +34 -0
- data/spec/models/webhooks_outgoing_delivery_attempt_data_spec.rb +52 -0
- data/spec/models/webhooks_outgoing_delivery_attempt_spec.rb +34 -0
- data/spec/models/webhooks_outgoing_delivery_data_attributes_spec.rb +70 -0
- data/spec/models/webhooks_outgoing_delivery_data_relationships_spec.rb +34 -0
- data/spec/models/webhooks_outgoing_delivery_data_spec.rb +52 -0
- data/spec/models/webhooks_outgoing_delivery_spec.rb +34 -0
- data/spec/models/webhooks_outgoing_endpoint_data_attributes_spec.rb +64 -0
- data/spec/models/webhooks_outgoing_endpoint_data_relationships_spec.rb +34 -0
- data/spec/models/webhooks_outgoing_endpoint_data_spec.rb +52 -0
- data/spec/models/webhooks_outgoing_endpoint_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +303 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingDeliveryAttemptDataAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **delivery_id** | **Integer** | | [optional] |
|
9
|
+
| **response_code** | **Integer** | | [optional] |
|
10
|
+
| **response_body** | **String** | | [optional] |
|
11
|
+
| **response_message** | **String** | | [optional] |
|
12
|
+
| **error_message** | **String** | | [optional] |
|
13
|
+
| **attempt_number** | **Integer** | | [optional] |
|
14
|
+
| **created_at** | **Time** | | [optional] |
|
15
|
+
| **updated_at** | **Time** | | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'bt_test'
|
21
|
+
|
22
|
+
instance = BtTest::WebhooksOutgoingDeliveryAttemptDataAttributes.new(
|
23
|
+
id: null,
|
24
|
+
delivery_id: null,
|
25
|
+
response_code: null,
|
26
|
+
response_body: null,
|
27
|
+
response_message: null,
|
28
|
+
error_message: null,
|
29
|
+
attempt_number: null,
|
30
|
+
created_at: null,
|
31
|
+
updated_at: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingDeliveryAttemptDataRelationships
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **delivery** | [**ProjectsTagDataRelationshipsTeam**](ProjectsTagDataRelationshipsTeam.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'bt_test'
|
13
|
+
|
14
|
+
instance = BtTest::WebhooksOutgoingDeliveryAttemptDataRelationships.new(
|
15
|
+
delivery: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingDeliveryData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **type** | **String** | | [optional] |
|
9
|
+
| **attributes** | [**WebhooksOutgoingDeliveryDataAttributes**](WebhooksOutgoingDeliveryDataAttributes.md) | | [optional] |
|
10
|
+
| **relationships** | [**WebhooksOutgoingDeliveryDataRelationships**](WebhooksOutgoingDeliveryDataRelationships.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'bt_test'
|
16
|
+
|
17
|
+
instance = BtTest::WebhooksOutgoingDeliveryData.new(
|
18
|
+
id: null,
|
19
|
+
type: null,
|
20
|
+
attributes: null,
|
21
|
+
relationships: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingDeliveryDataAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **endpoint_id** | **Integer** | | [optional] |
|
9
|
+
| **event_id** | **Integer** | | [optional] |
|
10
|
+
| **endpoint_url** | **String** | | [optional] |
|
11
|
+
| **delivered_at** | **Time** | | [optional] |
|
12
|
+
| **created_at** | **Time** | | [optional] |
|
13
|
+
| **updated_at** | **Time** | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'bt_test'
|
19
|
+
|
20
|
+
instance = BtTest::WebhooksOutgoingDeliveryDataAttributes.new(
|
21
|
+
id: null,
|
22
|
+
endpoint_id: null,
|
23
|
+
event_id: null,
|
24
|
+
endpoint_url: null,
|
25
|
+
delivered_at: null,
|
26
|
+
created_at: null,
|
27
|
+
updated_at: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingDeliveryDataRelationships
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **endpoint** | [**ProjectsTagDataRelationshipsTeam**](ProjectsTagDataRelationshipsTeam.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'bt_test'
|
13
|
+
|
14
|
+
instance = BtTest::WebhooksOutgoingDeliveryDataRelationships.new(
|
15
|
+
endpoint: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingEndpoint
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**WebhooksOutgoingEndpointData**](WebhooksOutgoingEndpointData.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'bt_test'
|
13
|
+
|
14
|
+
instance = BtTest::WebhooksOutgoingEndpoint.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingEndpointData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **type** | **String** | | [optional] |
|
9
|
+
| **attributes** | [**WebhooksOutgoingEndpointDataAttributes**](WebhooksOutgoingEndpointDataAttributes.md) | | [optional] |
|
10
|
+
| **relationships** | [**WebhooksOutgoingEndpointDataRelationships**](WebhooksOutgoingEndpointDataRelationships.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'bt_test'
|
16
|
+
|
17
|
+
instance = BtTest::WebhooksOutgoingEndpointData.new(
|
18
|
+
id: null,
|
19
|
+
type: null,
|
20
|
+
attributes: null,
|
21
|
+
relationships: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingEndpointDataAttributes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | | [optional] |
|
8
|
+
| **team_id** | **Integer** | | [optional] |
|
9
|
+
| **name** | **String** | | [optional] |
|
10
|
+
| **url** | **String** | | [optional] |
|
11
|
+
| **created_at** | **Time** | | [optional] |
|
12
|
+
| **updated_at** | **Time** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'bt_test'
|
18
|
+
|
19
|
+
instance = BtTest::WebhooksOutgoingEndpointDataAttributes.new(
|
20
|
+
id: null,
|
21
|
+
team_id: null,
|
22
|
+
name: null,
|
23
|
+
url: null,
|
24
|
+
created_at: null,
|
25
|
+
updated_at: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# BtTest::WebhooksOutgoingEndpointDataRelationships
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **team** | [**ProjectsTagDataRelationshipsTeam**](ProjectsTagDataRelationshipsTeam.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'bt_test'
|
13
|
+
|
14
|
+
instance = BtTest::WebhooksOutgoingEndpointDataRelationships.new(
|
15
|
+
team: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,57 @@
|
|
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-petstore-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=""
|
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=""
|
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=""
|
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=""
|
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'
|