fiftyone.geolocation 4.3.6 → 4.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ci/common-ci/.github/labels.yml +8 -2
- package/ci/common-ci/create-tag.yml +8 -5
- package/ci/common-ci/java/shared-security-vulnerability-check.yml +54 -0
- package/ci/common-ci/release-config.json +97 -74
- package/ci/common-ci/scripts/modules/51DGitModule/51DGitModule.psm1 +89 -26
- package/package.json +5 -5
|
@@ -74,7 +74,13 @@
|
|
|
74
74
|
color: 6ff076
|
|
75
75
|
- name: "scheduled: 12th Jan 2022"
|
|
76
76
|
description: This item has been scheduled for 12th Jan 2022 release
|
|
77
|
-
color:
|
|
77
|
+
color: 6ff076
|
|
78
78
|
- name: "scheduled: 19th Jan 2022"
|
|
79
79
|
description: This item has been scheduled for 19th Jan 2022 release
|
|
80
|
-
color:
|
|
80
|
+
color: 6ff076
|
|
81
|
+
- name: "scheduled: 26th Jan 2022"
|
|
82
|
+
description: This item has been scheduled for 26th Jan 2022 release
|
|
83
|
+
color: 6ff076
|
|
84
|
+
- name: "scheduled: 2nd Feb 2022"
|
|
85
|
+
description: This item has been scheduled for 2nd Feb 2022 release
|
|
86
|
+
color: 6ff076
|
|
@@ -25,12 +25,15 @@ stages:
|
|
|
25
25
|
submodules: recursive
|
|
26
26
|
persistCredentials: true
|
|
27
27
|
|
|
28
|
-
- task:
|
|
29
|
-
displayName:
|
|
30
|
-
# Give this task a name so we can use the variables it sets later.
|
|
31
|
-
name: GitVersion
|
|
28
|
+
- task: gitversion/setup@0
|
|
29
|
+
displayName: Install GitVersion
|
|
32
30
|
inputs:
|
|
33
|
-
|
|
31
|
+
versionSpec: '5.x'
|
|
32
|
+
|
|
33
|
+
- task: gitversion/execute@0
|
|
34
|
+
displayName: Determine Version
|
|
35
|
+
inputs:
|
|
36
|
+
useConfigFile: true
|
|
34
37
|
configFilePath: '$(Build.SourcesDirectory)/GitVersion.yml'
|
|
35
38
|
|
|
36
39
|
# Add a tag to the git repository with the version number.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
parameters:
|
|
2
|
+
- name: imageName # Name of build image
|
|
3
|
+
- name: dependencies # Stages that this stage depends on
|
|
4
|
+
type: object
|
|
5
|
+
default: []
|
|
6
|
+
|
|
7
|
+
stages:
|
|
8
|
+
- stage: 'SecurityCheck'
|
|
9
|
+
displayName: 'Security Vulnerability Check'
|
|
10
|
+
dependsOn: ${{ parameters.dependencies }}
|
|
11
|
+
|
|
12
|
+
variables:
|
|
13
|
+
- group: CIAutomation
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
- job: 'SecurityCheck'
|
|
17
|
+
displayName: 'Security Vulnerability Check'
|
|
18
|
+
|
|
19
|
+
pool:
|
|
20
|
+
vmImage: ${{ parameters.imageName }}
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- checkout: self
|
|
24
|
+
submodules: recursive
|
|
25
|
+
lfs: true
|
|
26
|
+
persistCredentials: true
|
|
27
|
+
|
|
28
|
+
- task: MavenAuthenticate@0
|
|
29
|
+
inputs:
|
|
30
|
+
artifactsFeeds: '$(InternalFeedName)'
|
|
31
|
+
|
|
32
|
+
# Perform a security vulnerability check on the dependencies
|
|
33
|
+
# using dependency-check-maven plugin
|
|
34
|
+
- bash: |
|
|
35
|
+
mvn dependency-check:aggregate -Pdependency-check -Dfetchrepository.id=$REPO_ID -Dfetchrepository.url=$REPO_URL
|
|
36
|
+
env:
|
|
37
|
+
REPO_ID: $(fetchrepository.id)
|
|
38
|
+
REPO_URL: $(fetchrepository.url)
|
|
39
|
+
displayName: 'Maven dependency check'
|
|
40
|
+
|
|
41
|
+
# Copy report to staging directory to be published
|
|
42
|
+
- task: CopyFiles@2
|
|
43
|
+
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
|
|
44
|
+
inputs:
|
|
45
|
+
SourceFolder: '$(build.sourcesdirectory)'
|
|
46
|
+
Contents: 'target/dependency-check-report.html'
|
|
47
|
+
TargetFolder: '$(build.artifactstagingdirectory)'
|
|
48
|
+
|
|
49
|
+
# Publish dependency check report
|
|
50
|
+
- task: PublishBuildArtifacts@1
|
|
51
|
+
displayName: 'Publish Artifact: dependency-check-report'
|
|
52
|
+
inputs:
|
|
53
|
+
PathtoPublish: '$(build.artifactstagingdirectory)'
|
|
54
|
+
ArtifactName: dependency-check-report
|
|
@@ -1,54 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"repositories": {
|
|
3
3
|
"common-ci": {
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.60",
|
|
5
5
|
"isLeaf": true
|
|
6
6
|
},
|
|
7
|
-
"
|
|
8
|
-
"version": "4.3.
|
|
9
|
-
"isLeaf": false
|
|
10
|
-
"dependencies": [
|
|
11
|
-
"common-ci"
|
|
12
|
-
]
|
|
7
|
+
"device-detection-data": {
|
|
8
|
+
"version": "4.3.5",
|
|
9
|
+
"isLeaf": false
|
|
13
10
|
},
|
|
14
11
|
"device-detection-cxx": {
|
|
15
|
-
"version": "4.3.
|
|
12
|
+
"version": "4.3.16",
|
|
16
13
|
"isLeaf": false,
|
|
17
14
|
"dependencies": [
|
|
18
15
|
"common-ci",
|
|
19
|
-
"
|
|
16
|
+
"device-detection-data"
|
|
20
17
|
]
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
"version": "4.3.
|
|
24
|
-
"packageName": "fiftyone.pipeline",
|
|
19
|
+
"device-detection-go": {
|
|
20
|
+
"version": "4.3.5",
|
|
25
21
|
"isLeaf": false,
|
|
26
22
|
"dependencies": [
|
|
27
|
-
"common-ci"
|
|
23
|
+
"common-ci",
|
|
24
|
+
"device-detection-cxx"
|
|
28
25
|
]
|
|
29
|
-
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"packageName": "fiftyone.geolocation",
|
|
26
|
+
},
|
|
27
|
+
"device-detection-varnish": {
|
|
28
|
+
"version": "4.3.3",
|
|
33
29
|
"isLeaf": false,
|
|
34
30
|
"dependencies": [
|
|
35
31
|
"common-ci",
|
|
36
|
-
"
|
|
37
|
-
"device-detection-node"
|
|
32
|
+
"device-detection-cxx"
|
|
38
33
|
]
|
|
39
34
|
},
|
|
40
|
-
"device-detection-
|
|
41
|
-
"version": "4.3.
|
|
42
|
-
"packageName": "fiftyone.devicedetection",
|
|
35
|
+
"device-detection-nginx": {
|
|
36
|
+
"version": "4.3.5",
|
|
43
37
|
"isLeaf": false,
|
|
44
38
|
"dependencies": [
|
|
45
39
|
"common-ci",
|
|
46
|
-
"device-detection-cxx"
|
|
47
|
-
"pipeline-node"
|
|
40
|
+
"device-detection-cxx"
|
|
48
41
|
]
|
|
49
42
|
},
|
|
50
43
|
"pipeline-java": {
|
|
51
|
-
"version": "4.3.
|
|
44
|
+
"version": "4.3.14",
|
|
52
45
|
"packageName": "pipeline",
|
|
53
46
|
"versionVariableName": "pipeline.version",
|
|
54
47
|
"isLeaf": false,
|
|
@@ -57,7 +50,7 @@
|
|
|
57
50
|
]
|
|
58
51
|
},
|
|
59
52
|
"location-java": {
|
|
60
|
-
"version": "4.3.
|
|
53
|
+
"version": "4.3.12",
|
|
61
54
|
"packageName": "pipeline.geo-location",
|
|
62
55
|
"versionVariableName": "geolocation.version",
|
|
63
56
|
"isLeaf": false,
|
|
@@ -68,33 +61,18 @@
|
|
|
68
61
|
]
|
|
69
62
|
},
|
|
70
63
|
"device-detection-java": {
|
|
71
|
-
"version": "4.3.
|
|
64
|
+
"version": "4.3.17",
|
|
72
65
|
"packageName": "pipeline.device-detection",
|
|
73
66
|
"versionVariableName": "devicedetection.version",
|
|
74
67
|
"isLeaf": false,
|
|
75
68
|
"dependencies": [
|
|
76
69
|
"common-ci",
|
|
77
|
-
"device-detection-cxx"
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
"common-dotnet": {
|
|
81
|
-
"version": "4.3.5",
|
|
82
|
-
"packageName": "FiftyOne.Common",
|
|
83
|
-
"isLeaf": false,
|
|
84
|
-
"dependencies": [
|
|
85
|
-
"common-ci"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
"caching-dotnet": {
|
|
89
|
-
"version": "4.3.5",
|
|
90
|
-
"packageName": "FiftyOne.Caching",
|
|
91
|
-
"isLeaf": false,
|
|
92
|
-
"dependencies": [
|
|
93
|
-
"common-ci"
|
|
70
|
+
"device-detection-cxx",
|
|
71
|
+
"pipeline-java"
|
|
94
72
|
]
|
|
95
73
|
},
|
|
96
74
|
"pipeline-dotnet": {
|
|
97
|
-
"version": "4.3.
|
|
75
|
+
"version": "4.3.17",
|
|
98
76
|
"packageName": "FiftyOne.Pipeline",
|
|
99
77
|
"isLeaf": false,
|
|
100
78
|
"dependencies": [
|
|
@@ -104,7 +82,7 @@
|
|
|
104
82
|
]
|
|
105
83
|
},
|
|
106
84
|
"location-dotnet": {
|
|
107
|
-
"version": "4.3.
|
|
85
|
+
"version": "4.3.12",
|
|
108
86
|
"packageName": "FiftyOne.Geolocation",
|
|
109
87
|
"isLeaf": false,
|
|
110
88
|
"dependencies": [
|
|
@@ -115,7 +93,7 @@
|
|
|
115
93
|
]
|
|
116
94
|
},
|
|
117
95
|
"device-detection-dotnet": {
|
|
118
|
-
"version": "4.3.
|
|
96
|
+
"version": "4.3.17",
|
|
119
97
|
"packageName": "FiftyOne.DeviceDetection",
|
|
120
98
|
"isLeaf": false,
|
|
121
99
|
"dependencies": [
|
|
@@ -126,68 +104,113 @@
|
|
|
126
104
|
"pipeline-dotnet"
|
|
127
105
|
]
|
|
128
106
|
},
|
|
129
|
-
"
|
|
130
|
-
"version": "4.3.
|
|
131
|
-
"packageName": "
|
|
107
|
+
"pipeline-node": {
|
|
108
|
+
"version": "4.3.8",
|
|
109
|
+
"packageName": "fiftyone.pipeline",
|
|
132
110
|
"isLeaf": false,
|
|
133
111
|
"dependencies": [
|
|
134
112
|
"common-ci"
|
|
135
113
|
]
|
|
136
114
|
},
|
|
137
|
-
"
|
|
138
|
-
|
|
115
|
+
"location-node": {
|
|
116
|
+
"version": "4.3.7",
|
|
117
|
+
"packageName": "fiftyone.geolocation",
|
|
139
118
|
"isLeaf": false,
|
|
140
119
|
"dependencies": [
|
|
141
120
|
"common-ci",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"pipeline-dotnet"
|
|
121
|
+
"pipeline-node",
|
|
122
|
+
"device-detection-node"
|
|
145
123
|
]
|
|
146
124
|
},
|
|
147
|
-
"
|
|
125
|
+
"device-detection-node": {
|
|
126
|
+
"version": "4.3.12",
|
|
127
|
+
"packageName": "fiftyone.devicedetection",
|
|
128
|
+
"isLeaf": false,
|
|
129
|
+
"dependencies": [
|
|
130
|
+
"common-ci",
|
|
131
|
+
"device-detection-cxx",
|
|
132
|
+
"pipeline-node"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"device-detection-python": {
|
|
148
136
|
"version": "4.3.5",
|
|
149
|
-
"packageName": "
|
|
150
|
-
"versionVariableName": "
|
|
137
|
+
"packageName": "fiftyone_devicedetection",
|
|
138
|
+
"versionVariableName": "deviceDetectionVersion",
|
|
139
|
+
"isLeaf": false,
|
|
140
|
+
"dependencies": [
|
|
141
|
+
"common-ci",
|
|
142
|
+
"device-detection-cxx",
|
|
143
|
+
"pipeline-python"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"pipeline-php-core": {
|
|
147
|
+
"version": "4.3.6",
|
|
148
|
+
"packageName": "fiftyone.pipeline.core",
|
|
151
149
|
"isLeaf": false,
|
|
152
150
|
"dependencies": [
|
|
153
151
|
"common-ci"
|
|
154
152
|
]
|
|
155
153
|
},
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
"packageName": "
|
|
159
|
-
"versionVariableName": "locationVersion",
|
|
154
|
+
"pipeline-php-engines": {
|
|
155
|
+
"version": "4.3.5",
|
|
156
|
+
"packageName": "fiftyone.pipeline.engines",
|
|
160
157
|
"isLeaf": false,
|
|
161
158
|
"dependencies": [
|
|
162
159
|
"common-ci",
|
|
163
|
-
"pipeline-
|
|
160
|
+
"pipeline-php-core"
|
|
164
161
|
]
|
|
165
162
|
},
|
|
166
|
-
"
|
|
167
|
-
"version": "4.3.
|
|
168
|
-
"packageName": "
|
|
169
|
-
"
|
|
163
|
+
"pipeline-php-cloudrequestengine": {
|
|
164
|
+
"version": "4.3.6",
|
|
165
|
+
"packageName": "fiftyone.pipeline.cloudrequestengine",
|
|
166
|
+
"isLeaf": false,
|
|
167
|
+
"dependencies": [
|
|
168
|
+
"common-ci",
|
|
169
|
+
"pipeline-php-core",
|
|
170
|
+
"pipeline-php-engines"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"location-php": {
|
|
174
|
+
"version": "4.3.5",
|
|
175
|
+
"packageName": "fiftyone.geolocation",
|
|
176
|
+
"isLeaf": false,
|
|
177
|
+
"dependencies": [
|
|
178
|
+
"common-ci",
|
|
179
|
+
"pipeline-php-core",
|
|
180
|
+
"pipeline-php-engines",
|
|
181
|
+
"pipeline-php-cloudrequestengine",
|
|
182
|
+
"device-detection-php"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"device-detection-php-onpremise": {
|
|
186
|
+
"version": "4.3.10",
|
|
187
|
+
"packageName": "fiftyone.devicedetection",
|
|
170
188
|
"isLeaf": false,
|
|
171
189
|
"dependencies": [
|
|
172
190
|
"common-ci",
|
|
173
191
|
"device-detection-cxx",
|
|
174
|
-
"pipeline-
|
|
192
|
+
"pipeline-php-core",
|
|
193
|
+
"pipeline-php-engines"
|
|
175
194
|
]
|
|
176
195
|
},
|
|
177
|
-
"device-detection-
|
|
178
|
-
"version": "4.3.
|
|
196
|
+
"device-detection-php": {
|
|
197
|
+
"version": "4.3.7",
|
|
198
|
+
"packageName": "fiftyone.devicedetection",
|
|
179
199
|
"isLeaf": false,
|
|
180
200
|
"dependencies": [
|
|
181
201
|
"common-ci",
|
|
182
|
-
"
|
|
202
|
+
"pipeline-php-core",
|
|
203
|
+
"pipeline-php-engines",
|
|
204
|
+
"pipeline-php-cloudrequestengine"
|
|
183
205
|
]
|
|
184
206
|
},
|
|
185
|
-
"
|
|
186
|
-
"version": "
|
|
207
|
+
"pipeline-wordpress": {
|
|
208
|
+
"version": "1.0.14",
|
|
209
|
+
"packageName": "fiftyonedegrees.wordpress",
|
|
187
210
|
"isLeaf": false,
|
|
188
211
|
"dependencies": [
|
|
189
212
|
"common-ci",
|
|
190
|
-
"
|
|
213
|
+
"pipeline-php-cloudrequestengine"
|
|
191
214
|
]
|
|
192
215
|
}
|
|
193
216
|
},
|
|
@@ -18,80 +18,139 @@ $script:releaseConfig = $null
|
|
|
18
18
|
$script:repositories = $null
|
|
19
19
|
|
|
20
20
|
class GitHandler {
|
|
21
|
+
static [boolean]Clean () {
|
|
22
|
+
$output = $(git clean -f -d)
|
|
23
|
+
$exitCode = $LASTEXITCODE
|
|
24
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
25
|
+
if (!$rtnCode) {
|
|
26
|
+
Write-Host $output
|
|
27
|
+
Write-Host "# WARNING: Could not clean current dir properly. Exit code $exitCode."
|
|
28
|
+
}
|
|
29
|
+
return $rtnCode
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static [boolean]UpdateSubmodules() {
|
|
33
|
+
$output = $(git submodule update --init --recursive)
|
|
34
|
+
$exitCode = $LASTEXITCODE
|
|
35
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
36
|
+
if (!$rtnCode) {
|
|
37
|
+
Write-Host $output
|
|
38
|
+
Write-Host "# WARNING: Could not update submodules recursively. Exit code $exitCode."
|
|
39
|
+
}
|
|
40
|
+
return $rtnCode
|
|
41
|
+
}
|
|
42
|
+
|
|
21
43
|
static [boolean]Checkout ([string]$branchName) {
|
|
22
44
|
Write-Host "# Checkout $branchName"
|
|
23
|
-
git checkout "$branchName"
|
|
24
|
-
|
|
45
|
+
$output = $(git checkout "$branchName")
|
|
46
|
+
$exitCode = $LASTEXITCODE
|
|
47
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
48
|
+
if (!$rtnCode) {
|
|
49
|
+
Write-Host $output
|
|
50
|
+
Write-Host "# ERROR: Failed to checkout '$branchName' recursively. Exit code $exitCode."
|
|
51
|
+
return $rtnCode
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
$rtnCode = [GitHandler]::UpdateSubmodules()
|
|
55
|
+
if (!$rtnCode) {
|
|
56
|
+
return $rtnCode
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return [GitHandler]::Clean()
|
|
25
60
|
}
|
|
26
61
|
|
|
27
62
|
static [boolean]CheckoutTrack ([string]$branchName) {
|
|
28
63
|
Write-Host "# Checkout track $branchName"
|
|
29
|
-
git checkout --track "$branchName"
|
|
30
|
-
|
|
64
|
+
$output = $(git checkout --track "$branchName")
|
|
65
|
+
$exitCode = $LASTEXITCODE
|
|
66
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
67
|
+
if (!$rtnCode) {
|
|
68
|
+
Write-Host $output
|
|
69
|
+
Write-Host "# ERROR: Failed to checkout '$branchName' recursively. Exit code $exitCode."
|
|
70
|
+
return $rtnCode
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
$rtnCode = [GitHandler]::UpdateSubmodules()
|
|
74
|
+
if (!$rtnCode) {
|
|
75
|
+
return $rtnCode
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return [GitHandler]::Clean()
|
|
31
79
|
}
|
|
32
80
|
|
|
33
81
|
static [boolean]CheckoutNew ([string]$branchName) {
|
|
34
82
|
Write-Host "# Checkout New $branchName"
|
|
35
|
-
git checkout -b "$branchName"
|
|
36
|
-
return
|
|
83
|
+
$output = $(git checkout -b "$branchName")
|
|
84
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
85
|
+
|
|
37
86
|
}
|
|
38
87
|
|
|
39
88
|
static [boolean]Pull () {
|
|
40
89
|
Write-Host "# Git pull"
|
|
41
|
-
git pull
|
|
42
|
-
return
|
|
90
|
+
$output = $(git pull)
|
|
91
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
43
92
|
}
|
|
44
93
|
|
|
45
94
|
static [boolean]FetchAllTags () {
|
|
46
95
|
Write-Host "# Fetch all tags"
|
|
47
96
|
# git -c http.extraheader="AUTHORIZATION: bearer $env:SYSTEM_ACCESSTOKEN" fetch --all --tags
|
|
48
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" fetch --all --tags
|
|
49
|
-
return
|
|
97
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" fetch --all --tags)
|
|
98
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
50
99
|
}
|
|
51
100
|
|
|
52
101
|
static [boolean]Push ([string]$branchName) {
|
|
53
102
|
if ([string]::IsNullOrEmpty($branchName)) {
|
|
54
103
|
Write-Host "# Git Push $branchName to origin"
|
|
55
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push
|
|
104
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push)
|
|
56
105
|
} else {
|
|
57
106
|
Write-Host "# Git Push"
|
|
58
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push origin "$branchName"
|
|
107
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" push origin "$branchName")
|
|
59
108
|
}
|
|
60
|
-
return
|
|
109
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
61
110
|
}
|
|
62
111
|
|
|
63
112
|
static [boolean]Commit ([string]$message) {
|
|
64
113
|
Write-Host "# Git commit"
|
|
65
|
-
git commit -m "$message"
|
|
66
|
-
return
|
|
114
|
+
$output = $(git commit -m "$message")
|
|
115
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
67
116
|
}
|
|
68
117
|
|
|
69
118
|
static [boolean]Config ([string]$email, [string]$name) {
|
|
70
119
|
Write-Host "# Git config email '$email' and name '$name'"
|
|
71
|
-
git config user.email "$email"
|
|
72
|
-
[
|
|
73
|
-
|
|
74
|
-
|
|
120
|
+
$output = $(git config user.email "$email")
|
|
121
|
+
$rtnCode = [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
122
|
+
|
|
123
|
+
$output = $(git config user.name "$name")
|
|
124
|
+
return $rtnCode -and [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
75
125
|
}
|
|
76
126
|
|
|
77
127
|
static [boolean]Add ([string]$path) {
|
|
78
128
|
Write-Host "# Git stage '$path'"
|
|
79
|
-
git add "$path"
|
|
80
|
-
return
|
|
129
|
+
$output = $(git add "$path")
|
|
130
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
81
131
|
}
|
|
82
132
|
|
|
83
133
|
static [boolean]CheckoutWithAuthorization ([string]$branchName) {
|
|
84
134
|
Write-Host "# Checkout with authorization $branchName"
|
|
85
135
|
# git -c http.extraheader="AUTHORIZATION: bearer $env:SYSTEM_ACCESSTOKEN" checkout "$branchName"
|
|
86
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" checkout "$branchName"
|
|
87
|
-
return
|
|
136
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" checkout "$branchName")
|
|
137
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
88
138
|
}
|
|
89
139
|
|
|
90
140
|
static [boolean]Clone ([string]$url) {
|
|
91
141
|
Write-Host "# Clone $url"
|
|
92
142
|
# git -c http.extraheader="AUTHORIZATION: Bearer $env:SYSTEM_ACCESSTOKEN" clone "$url"
|
|
93
|
-
git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" clone "$url"
|
|
94
|
-
return
|
|
143
|
+
$output = $(git -c http.extraheader="AUTHORIZATION: $([Authorization]::AuthorizationString)" clone "$url")
|
|
144
|
+
return [GitHandler]::ProcessExitCode($LASTEXITCODE, $output)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static hidden [boolean]ProcessExitCode ([int]$exitCode, [string]$commandOutput) {
|
|
148
|
+
[boolean]$rtnCode = $exitCode -eq 0
|
|
149
|
+
if (!$rtnCode) {
|
|
150
|
+
Write-Host $commandOutput
|
|
151
|
+
Write-Host "WARNING: Failed with exit code $exitCode"
|
|
152
|
+
}
|
|
153
|
+
return $rtnCode
|
|
95
154
|
}
|
|
96
155
|
}
|
|
97
156
|
|
|
@@ -577,11 +636,15 @@ function Update-SubmoduleReferences {
|
|
|
577
636
|
Write-Host "================"
|
|
578
637
|
foreach ($submodule in $(git config --file .gitmodules --name-only --get-regexp path)) {
|
|
579
638
|
Write-Host ""
|
|
580
|
-
Write-Host "# Process submodule path $
|
|
639
|
+
Write-Host "# Process submodule path $submodule."
|
|
581
640
|
$submodulePath = Find-SubmodulePath -GitSubmodulePath $submodule
|
|
582
641
|
if ($submodulePath -ne $null) {
|
|
583
642
|
Write-Host "# Path $submodulePath extracted."
|
|
584
643
|
Push-Location $submodulePath
|
|
644
|
+
if (!$?) {
|
|
645
|
+
Write-Host "# ERROR: Failed to navigate to submodule $submodulePath"
|
|
646
|
+
return $false
|
|
647
|
+
}
|
|
585
648
|
|
|
586
649
|
# Get repo name
|
|
587
650
|
$subRepoName = Get-RepositoryName
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiftyone.geolocation",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.7",
|
|
4
4
|
"description": "Geo-location services for the 51Degrees Pipeline API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"Joseph Dix <joseph@51degrees.com> (https://51degrees.com)"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"fiftyone.pipeline.cloudrequestengine": "^4.3.
|
|
21
|
-
"fiftyone.pipeline.core": "^4.3.
|
|
22
|
-
"fiftyone.pipeline.engines": "^4.3.
|
|
23
|
-
"fiftyone.pipeline.engines.fiftyone": "^4.3.
|
|
20
|
+
"fiftyone.pipeline.cloudrequestengine": "^4.3.8",
|
|
21
|
+
"fiftyone.pipeline.core": "^4.3.8",
|
|
22
|
+
"fiftyone.pipeline.engines": "^4.3.8",
|
|
23
|
+
"fiftyone.pipeline.engines.fiftyone": "^4.3.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^15.12.2",
|