Skip to content

Commit b62360d

Browse files
authored
Merge branch 'vnext' into skrastev/fix-456
2 parents b993061 + 40c53f4 commit b62360d

File tree

3,403 files changed

+741861
-146058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,403 files changed

+741861
-146058
lines changed

azure-pipelines/build-pipeline.yml

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ trigger:
33
include:
44
- vnext
55
- master
6-
- btraykov/azure-pipeline
76

87
# This pipeline is meant to build specific branches for deployment. It's not meant to be a part of PR validation.
98
pr: none
@@ -13,7 +12,13 @@ parameters:
1312
displayName: 'Get verbose output from steps - where configurable'
1413
type: boolean
1514
default: false
15+
- name: shouldCleanPostExectuion
16+
displayName: 'Clean all pipeline dirs after the pipeline finishes?'
17+
type: boolean
18+
default: true
19+
1620
name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
21+
1722
stages:
1823
- stage: Build
1924
pool:
@@ -23,60 +28,64 @@ stages:
2328
- job: BuildSamples
2429
steps:
2530
- checkout: 'self'
31+
clean: true
2632
path: $(Build.Repository.Name)
33+
2734
- task: NodeTool@0
2835
displayName: 'Install Node'
2936
inputs:
3037
versionSource: 'spec'
3138
versionSpec: '16.x'
39+
3240
- task: Npm@1
3341
displayName: 'Register licensed npm registry in .npmrc'
3442
inputs:
3543
command: 'custom'
3644
workingDir: '$(Build.SourcesDirectory)'
37-
customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
38-
customEndpoint: 'internal licensed proget'
45+
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
46+
customEndpoint: 'public proget'
3947

4048
- task: Npm@1
4149
displayName: 'npm ci --legacy-peer-deps'
4250
inputs:
4351
command: custom
4452
workingDir: '$(Build.SourcesDirectory)'
4553
customCommand: 'ci --legacy-peer-deps'
46-
customEndpoint: 'internal licensed proget'
47-
48-
- task: Npm@1
49-
displayName: 'Register licensed npm registry in .npmrc'
50-
inputs:
51-
command: 'custom'
52-
workingDir: '$(Build.SourcesDirectory)'
53-
customCommand: 'config -L project set @infragistics:registry=https://packages.infragistics.com/npm/js-licensed/'
5454
customEndpoint: 'public proget'
55+
56+
# - task: Npm@1
57+
# displayName: 'Register licensed npm registry in .npmrc'
58+
# inputs:
59+
# command: 'custom'
60+
# workingDir: '$(Build.SourcesDirectory)'
61+
# customCommand: 'config -L project set @infragistics:registry=http://proget.infragistics.local:81/npm/IgniteUILicensed/'
62+
# customEndpoint: 'internal licensed proget'
63+
64+
# - task: PowerShell@2
65+
# displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
66+
# inputs:
67+
# failOnStderr: true
68+
# showWarnings: true
69+
# workingDirectory: '$(Build.SourcesDirectory)'
70+
# targetType: 'inline'
71+
# script: |
72+
# Get-Content -Path .\.npmrc
73+
# $packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
74+
# $npmUninstallPackages = "npm uninstall --save "
75+
# $npmInstallPackages = "npm install --legacy-peer-deps "
76+
# $packageJson.dependencies.PSObject.Properties | `
77+
# Where-Object {
78+
# $_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
79+
# } | `
80+
# ForEach-Object { `
81+
# $npmUninstallPackages += $_.Name + " "
82+
# $npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
83+
# }
84+
# Write-Host $npmUninstallPackages
85+
# Write-Host $npmInstallPackages
86+
# Invoke-Expression -Command “$npmUninstallPackages”
87+
# Invoke-Expression -Command “$npmInstallPackages”
5588

56-
- task: PowerShell@2
57-
displayName: 'Uninstall all IG trial packages & re-install their licensed variations'
58-
inputs:
59-
failOnStderr: true
60-
showWarnings: true
61-
workingDirectory: '$(Build.SourcesDirectory)'
62-
targetType: 'inline'
63-
script: |
64-
Get-Content -Path .\.npmrc
65-
$packageJson = Get-Content -Raw .\package.json | ConvertFrom-Json
66-
$npmUninstallPackages = "npm uninstall --save "
67-
$npmInstallPackages = "npm install "
68-
$packageJson.dependencies.PSObject.Properties | `
69-
Where-Object {
70-
$_.Name.StartsWith("igniteui-webcomponents-") -or $_.Name.StartsWith("igniteui-dockmanager") `
71-
} | `
72-
ForEach-Object { `
73-
$npmUninstallPackages += $_.Name + " "
74-
$npmInstallPackages += "@infragistics/" + $_.Name + "@" + $_.Value + " "
75-
}
76-
Write-Host $npmUninstallPackages
77-
Write-Host $npmInstallPackages
78-
Invoke-Expression -Command “$npmUninstallPackages”
79-
Invoke-Expression -Command “$npmInstallPackages”
8089
- task: Npm@1
8190
displayName: 'npm run build'
8291
inputs:
@@ -104,3 +113,6 @@ stages:
104113
inputs:
105114
targetPath: '$(Build.ArtifactStagingDirectory)/WebComponentsSamples.zip'
106115
artifact: 'WebComponentsSamplesBrowser'
116+
117+
- ${{ if eq(parameters.shouldCleanPostExectuion, true) }}:
118+
- task: PostBuildCleanup@4

0 commit comments

Comments
 (0)