Skip to content

Commit b39501b

Browse files
authored
Merge pull request #10795 from microsoft/users/ansheno/helmlatest153fix
Users/ansheno/helmlatest153fix
2 parents 53049fa + 606fd6a commit b39501b

File tree

15 files changed

+20
-15
lines changed

15 files changed

+20
-15
lines changed

Tasks/Common/kubernetes-common/helmutility.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ export async function getStableHelmVersion(): Promise<string> {
6969
try {
7070
const downloadPath = await toolLib.downloadTool('https://api.github.com/repos/helm/helm/releases/latest');
7171
const response = JSON.parse(fs.readFileSync(downloadPath, 'utf8').toString().trim());
72-
return response.body.tag_name;
72+
if (!response.tag_name)
73+
{
74+
return stableHelmVersion;
75+
}
76+
77+
return response.tag_name;
7378
} catch (error) {
7479
tl.warning(tl.loc('HelmLatestNotKnown', helmLatestReleaseUrl, error, stableHelmVersion));
7580
}

Tasks/HelmDeployV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 1
17+
"Patch": 2
1818
},
1919
"demands": [],
2020
"groups": [

Tasks/HelmDeployV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 1
17+
"Patch": 2
1818
},
1919
"demands": [],
2020
"groups": [

Tasks/HelmInstallerV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 0
17+
"Patch": 1
1818
},
1919
"demands": [],
2020
"satisfies": [

Tasks/HelmInstallerV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 0
17+
"Patch": 1
1818
},
1919
"demands": [],
2020
"satisfies": [

Tasks/HelmInstallerV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 153,
17-
"Patch": 0
17+
"Patch": 1
1818
},
1919
"preview": true,
2020
"demands": [],

Tasks/HelmInstallerV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 153,
17-
"Patch": 0
17+
"Patch": 1
1818
},
1919
"preview": true,
2020
"demands": [],

Tasks/KubectlInstallerV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 1
17+
"Patch": 2
1818
},
1919
"demands": [],
2020
"satisfies": [

Tasks/KubectlInstallerV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 1
17+
"Patch": 2
1818
},
1919
"demands": [],
2020
"satisfies": [

Tasks/KubernetesManifestV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 0,
1616
"Minor": 153,
17-
"Patch": 6
17+
"Patch": 7
1818
},
1919
"demands": [],
2020
"groups": [],

0 commit comments

Comments
 (0)