Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to support Node 16 #99

Merged
merged 11 commits into from
Oct 17, 2023
Merged
92 changes: 92 additions & 0 deletions .azure-pipelines/azure-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
variables:
- name: major
value: "1"
- name: minor
value: "1"
- name: extensionName
value: "EmailReportExtension"
- name: marketplaceServiceConnection
value: "marketplaceServiceConnection"
- name: publisherId
value: "ms-devlabs"
- name: publicExtensionName
value: "Email Report Extension"
- name: extensionId
value: "EmailReportExtension"

name: $(major).$(minor)$(rev:.r)

trigger:
branches:
include:
- master

pr: none

resources:
repositories:
- repository: pipeline-templates
type: git
name: Sage/pipeline-template
ref: main

stages:
- stage: "Build"
jobs:
- job: "BuildPack"
displayname: "Build and package"
pool:
vmImage: "ubuntu-latest"
steps:
- task: NodeTool@0
inputs:
versionSpec: "16.x"
displayName: "Install Node.js"
- template: build.yml@pipeline-templates
- template: package.yml@pipeline-templates
parameters:
extensionName: $(extensionName)
outputPath: "out"

- stage: "DeployDev"
displayName: "Deploy to Dev"
dependsOn: "Build"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- template: deploy.yml@pipeline-templates
parameters:
environment: "dev"
extensionName: $(extensionName)
marketplaceServiceConnection: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
- stage: "DeployTest"
displayName: "Deploy to Test"
dependsOn: "DeployDev"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- template: deploy.yml@pipeline-templates
parameters:
environment: "test"
extensionName: $(extensionName)
marketplaceServiceConnection: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
updateTaskVersion: true
extensionId: $(extensionId)

- stage: "DeployRelease"
displayName: "Deploy to Public"
dependsOn: "DeployTest"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- template: deploy.yml@pipeline-templates
parameters:
environment: "public"
extensionName: $(extensionName)
marketplaceServiceConnection: $(marketplaceServiceConnection)
publisherId: $(publisherId)
publicExtensionName: $(publicExtensionName)
extensionVisibility: "public"
updateTaskVersion: true
extensionId: $(extensionId)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tl = require("azure-pipelines-task-lib/task");
import tl = require("azure-pipelines-task-lib");
import { ReportConfiguration } from "./config/ReportConfiguration";
import { ConfigurationProvider } from "./config/ConfigurationProvider";
import { ReportManager } from "./ReportManager";
Expand Down
Loading
Loading