Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Commit

Permalink
Updating all other pipelines to install helm2 prior to runnin steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mtarng authored and bnookala committed Mar 17, 2020
1 parent f3e0b9b commit 78aad13
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib/fileutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ export const serviceBuildAndUpdatePipeline = (
vmImage: VM_IMAGE
},
steps: [
{
task: "HelmInstaller@1",
inputs: {
helmVersionToInstall: "2.16.3"
}
},
{
script: generateYamlScript([
`echo "az login --service-principal --username $(SP_APP_ID) --password $(SP_PASS) --tenant $(SP_TENANT)"`,
Expand Down Expand Up @@ -267,6 +273,12 @@ export const serviceBuildAndUpdatePipeline = (
vmImage: VM_IMAGE
},
steps: [
{
task: "HelmInstaller@1",
inputs: {
helmVersionToInstall: "2.16.3"
}
},
{
script: generateYamlScript([
`# Download build.sh`,
Expand Down Expand Up @@ -681,6 +693,12 @@ const hldLifecyclePipelineYaml = (): string => {
vmImage: VM_IMAGE
},
steps: [
{
task: "HelmInstaller@1",
inputs: {
helmVersionToInstall: "2.16.3"
}
},
{
script: generateYamlScript([
`# Download build.sh`,
Expand Down
18 changes: 18 additions & 0 deletions src/test/mockFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export const createTestServiceBuildAndUpdatePipelineYaml = (
vmImage: VM_IMAGE
},
steps: [
{
task: "HelmInstaller@1",
inputs: {
helmVersionToInstall: "2.16.3"
}
},
{
script: generateYamlScript([
`echo "az login --service-principal --username $(SP_APP_ID) --password $(SP_PASS) --tenant $(SP_TENANT)"`,
Expand Down Expand Up @@ -98,6 +104,12 @@ export const createTestServiceBuildAndUpdatePipelineYaml = (
vmImage: VM_IMAGE
},
steps: [
{
task: "HelmInstaller@1",
inputs: {
helmVersionToInstall: "2.16.3"
}
},
{
script: generateYamlScript([
`# Download build.sh`,
Expand Down Expand Up @@ -300,6 +312,12 @@ export const createTestHldLifecyclePipelineYaml = (
vmImage: VM_IMAGE
},
steps: [
{
task: "HelmInstaller@1",
inputs: {
helmVersionToInstall: "2.16.3"
}
},
{
script: generateYamlScript([
`# Download build.sh`,
Expand Down
4 changes: 4 additions & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ export interface AzurePipelinesYaml {
REPO?: string;
};
condition?: string;
inputs?: {
helmVersionToInstall?: string;
};
task?: string;
}>;
}>;
}>;
Expand Down

0 comments on commit 78aad13

Please sign in to comment.