Skip to content

Commit bd937bd

Browse files
saikrishnavKrishna V
andauthored
Make the Email Report Extension Public (#34)
* Make the Email Report Extension Public * use aliases for enableTLS * Improve logging for retries * Fix vars * Fix icon size for marketplace reqs Co-authored-by: Krishna V <[email protected]>
1 parent 6b0e417 commit bd937bd

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

Tasks/emailReportTask/config/ConfigurationProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class ConfigurationProvider implements IConfigurationProvider {
7878
const smtpHost = tl.getEndpointUrl(smtpConnectionId, true).replace(/(^\w+:|^)\/\//, '').replace(/\/$/, '');
7979
const userName = tl.getEndpointAuthorizationParameter(smtpConnectionId, "UserName", true);
8080
const password = tl.getEndpointAuthorizationParameter(smtpConnectionId, "Password", true);
81-
const enableTLS = tl.getBoolInput(TaskConstants.ENABLESSL_INPUTKEY, true);
81+
const enableTLS = tl.getBoolInput(TaskConstants.ENABLETLS_INPUTKEY, true);
8282

8383
const smtpConfig = new SmtpConfiguration(userName, password, smtpHost, enableTLS);
8484

Tasks/emailReportTask/config/TaskConstants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export class TaskConstants {
1212
public static readonly INCLUDEINTO_INPUTKEY = "includeInToSectionStr";
1313
public static readonly INCLUDEINCC_INPUTKEY = "includeInCcSectionStr";
1414
public static readonly SMTPCONNECTION_INPUTKEY = "smtpConnectionEndpoint";
15-
public static readonly ENABLESSL_INPUTKEY = "enableSSLOnSmtpConnection";
15+
// Inputkey value should be "enableTLS" - however changing that will break the task for everyone. See task.dev.json or task.prod.json for the confusion.
16+
// For now -inputkey has to be enableSSL... until AzureDevOps marketplace supports a way to rename params in json
17+
public static readonly ENABLETLS_INPUTKEY = "enableSSLOnSmtpConnection";
1618
public static readonly USEPREVENV_INPUTKEY = "usePreviousEnvironment";
1719
public static readonly DEFAULTDOMAIN_INPUTKEY = "defaultDomain";
1820

-16.5 KB
Loading

Tasks/emailReportTask/providers/restclients/RetryablePromise.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class RetryablePromise {
2020
}
2121
catch (err) {
2222
lastError = err;
23-
console.log(`Retry: ${attemptNumber} : ${err}`);
23+
console.log(`Retry <${executorName}>: ${attemptNumber} : ${err}`);
2424
}
2525
attemptNumber++;
2626
} while (attemptNumber <= times);

Tasks/emailReportTask/task.dev.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": 1,
1515
"Minor": 2,
16-
"Patch": 204
16+
"Patch": 208
1717
},
1818
"groups": [
1919
{
@@ -206,11 +206,14 @@
206206
},
207207
{
208208
"name": "enableSSLOnSmtpConnection",
209+
"aliases": [
210+
"enableTLS"
211+
],
209212
"type": "boolean",
210-
"label": "Enable SSL",
213+
"label": "Enable TLS",
211214
"required": false,
212215
"defaultValue": "false",
213-
"helpMarkDown": "Enables SSL on SMTP Connection for sending email.",
216+
"helpMarkDown": "Enables TLS on SMTP Connection for sending email.",
214217
"groupName": "advanced"
215218
},
216219
{

Tasks/emailReportTask/task.prod.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"version": {
1414
"Major": 1,
1515
"Minor": 1,
16-
"Patch": 6
16+
"Patch": 8
1717
},
1818
"groups": [
1919
{
@@ -206,11 +206,14 @@
206206
},
207207
{
208208
"name": "enableSSLOnSmtpConnection",
209+
"aliases": [
210+
"enableTLS"
211+
],
209212
"type": "boolean",
210-
"label": "Enable SSL",
213+
"label": "Enable TLS",
211214
"required": false,
212215
"defaultValue": "false",
213-
"helpMarkDown": "Enables SSL on SMTP Connection for sending email.",
216+
"helpMarkDown": "Enables TLS on SMTP Connection for sending email.",
214217
"groupName": "advanced"
215218
},
216219
{

Tasks/emailReportTask/vss-extension.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
"manifestVersion": 1,
33
"id": "EmailReportExtension",
44
"name": "Email Report Extension",
5-
"version": "1.1.6",
5+
"version": "1.1.9",
66
"publisher": "epsteam",
7+
"public": true,
78
"targets": [
89
{
910
"id": "Microsoft.VisualStudio.Services"
1011
}
1112
],
12-
"description": "Extension to send a detailed email report for a build or release pipeline",
13+
"description": "Sends Detailed email report for a build or release pipeline",
1314
"categories": [
1415
"Azure Pipelines"
1516
],
@@ -35,6 +36,10 @@
3536
"path": "LICENSE"
3637
}
3738
},
39+
"repository": {
40+
"type": "git",
41+
"uri": "https://github.com/microsoft/azure-devops-engineering-extensions"
42+
},
3843
"contributions": [
3944
{
4045
"id": "EmailReport",

0 commit comments

Comments
 (0)