Skip to content

Commit 2f10861

Browse files
author
BDS-AD\jpiscitelli
committed
SSL bug fix. Tick to 1.0.3.
1 parent 87668e8 commit 2f10861

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

tasks/detect-task/detect-task.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,17 @@ Import-Module $PSScriptRoot\lib\argument-parser.ps1
88

99
######################SETTINGS#######################
1010

11-
$TaskVersion = "1.0.2"; #Automatically Updated
11+
$TaskVersion = "1.0.3"; #Automatically Updated
1212
Write-Host ("Detect for TFS Version {0}" -f $TaskVersion)
1313

1414
#Support all TLS protocols.
15-
[Net.ServicePointManager]::SecurityProtocol = [System.Security.Authentication.SslProtocols] "tls, tls11, tls12"
16-
15+
try {
16+
[Net.ServicePointManager]::SecurityProtocol = "tls, tls11, tls12"
17+
} catch [Exception] {
18+
Write-Host ("Failed to enable TLS protocols.")
19+
Write-Host $_.Exception.GetType().FullName;
20+
Write-Host $_.Exception.Message;
21+
}
1722
#Get Hub Url
1823

1924
Write-Host "Getting inputs from VSTS."

tasks/detect-task/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": "1",
1515
"Minor": "0",
16-
"Patch": "2"
16+
"Patch": "3"
1717
},
1818
"minimumAgentVersion": "1.95.0",
1919
"instanceNameFormat": "Run Black Duck Detect for your build $(message)",

vsts-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifestVersion": 1,
33
"id": "detect-for-tfs",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"name": "Black Duck Detect",
66
"publisher": "black-duck-software",
77
"public": true,

0 commit comments

Comments
 (0)