From 6d98d21c249c3dbec27b5c3ab0b40ecacce2df18 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 17:38:38 +0200 Subject: [PATCH 01/25] Initial draft of the pipeline --- azure-pipelines/build-pipeline.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 azure-pipelines/build-pipeline.yml diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml new file mode 100644 index 000000000..9b513ee97 --- /dev/null +++ b/azure-pipelines/build-pipeline.yml @@ -0,0 +1,33 @@ +trigger: + branches: + include: + - 'vnext' + - 'btraykov-azure-pipeline' + +# This pipeline is meant to run on changes pushed to the vnext branch only. +# If it runs on PRs, it will create PRs to the destination repos' vnext branches - we don't want that. +pr: none + +name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) + + +pool: + name: BuildAgentOnPrem + +jobs: +- job: + steps: + # TODO get steps from TFS pipeline. We need to do an npm install for sure + # explicitly install npx (global?) and igniteui-cli - latest versionS + # use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) + # follow steps & pray to Jesus + + # 1. npm install + # 2. gulp updateBrowser + # 3. Copy-Item "$rootpath\@infragistics\*" -Destination "$rootpath" -Recurse # Move @infragistics\* folders up + # 4. ((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json + # 5. npm run build + + # TODO Convert Octopus Deploy deployment to Azure release pipeline & pray to Jesus + + # \ No newline at end of file From 406b1dccace9cb4967fe4fc93e9c9cb97121b94e Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 17:58:25 +0200 Subject: [PATCH 02/25] Doing shenanigans with the repo checkout --- azure-pipelines/build-pipeline.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 9b513ee97..19eca72fd 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -10,6 +10,13 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) +resources: + repositories: + - repository: self + type: github + ref: eebcb2a + name: igniteui-angular-examples + pool: name: BuildAgentOnPrem @@ -17,6 +24,8 @@ pool: jobs: - job: steps: + - checkout: self + # TODO get steps from TFS pipeline. We need to do an npm install for sure # explicitly install npx (global?) and igniteui-cli - latest versionS # use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) From e0aba529acf87e104b21d8f4fd8c39dfa76c5b51 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:09:59 +0200 Subject: [PATCH 03/25] Experiment --- azure-pipelines/build-pipeline.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 19eca72fd..147cc871d 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -10,12 +10,13 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) -resources: - repositories: - - repository: self - type: github - ref: eebcb2a - name: igniteui-angular-examples +# TODO: Remove this section this out as soon as the state of the vnext branch is good enough +#resources: +# repositories: +# - repository: selfi +# type: github +# ref: eebcb2a +# name: igniteui-angular-examples pool: From ede751a2d7795e57544e525319d85d7cbe588edb Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:12:41 +0200 Subject: [PATCH 04/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 147cc871d..9c71f8087 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -27,6 +27,11 @@ jobs: steps: - checkout: self + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: 'Write-Output $pwd' + # TODO get steps from TFS pipeline. We need to do an npm install for sure # explicitly install npx (global?) and igniteui-cli - latest versionS # use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) From cc18e250e3d48f58240d7ff69e75db691a9e1edd Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:26:50 +0200 Subject: [PATCH 05/25] Add npm commands --- azure-pipelines/build-pipeline.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 9c71f8087..195269618 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -11,12 +11,12 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) # TODO: Remove this section this out as soon as the state of the vnext branch is good enough -#resources: -# repositories: -# - repository: selfi -# type: github -# ref: eebcb2a -# name: igniteui-angular-examples +resources: + repositories: + - repository: selfi + type: github + ref: eebcb2a + name: igniteui-angular-examples pool: @@ -32,6 +32,22 @@ jobs: targetType: 'inline' script: 'Write-Output $pwd' + - task: NodeTool@0 + inputs: + versionSource: 'spec' + versionSpec: '16.x' + + - task: Npm@1 + inputs: + command: 'install' + workingDir: '$(Build.SourcesDirectory)\browser' + + - task: Npm@1 + inputs: + command: 'custom' + workingDir: '$(Build.SourcesDirectory)\browser' + customCommand: 'run build' + # TODO get steps from TFS pipeline. We need to do an npm install for sure # explicitly install npx (global?) and igniteui-cli - latest versionS # use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) From 4c6b7a07cf484ec9b07702a53a6f19a0ba305ae2 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:27:16 +0200 Subject: [PATCH 06/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 195269618..919a8bc28 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -13,7 +13,7 @@ name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) # TODO: Remove this section this out as soon as the state of the vnext branch is good enough resources: repositories: - - repository: selfi + - repository: self type: github ref: eebcb2a name: igniteui-angular-examples From 4a7b6321d585bd6eb418bad613b0667c8ab1c23f Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:29:37 +0200 Subject: [PATCH 07/25] Add comments + explicit checkout path in the pipeline --- azure-pipelines/build-pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 919a8bc28..b01f6287e 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -15,7 +15,7 @@ resources: repositories: - repository: self type: github - ref: eebcb2a + ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process name: igniteui-angular-examples @@ -26,6 +26,7 @@ jobs: - job: steps: - checkout: self + path: igniteui-angular-examples # this is explicitly required by the samples browser build process - task: PowerShell@2 inputs: From c5e678929b5ef18a6d0763378ae5b668a4c1592f Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:41:22 +0200 Subject: [PATCH 08/25] Add powershell for shenanigans on the package.json --- azure-pipelines/build-pipeline.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index b01f6287e..0ad9463fc 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -24,15 +24,11 @@ pool: jobs: - job: + displayName: Build steps: - checkout: self path: igniteui-angular-examples # this is explicitly required by the samples browser build process - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: 'Write-Output $pwd' - - task: NodeTool@0 inputs: versionSource: 'spec' @@ -43,6 +39,15 @@ jobs: command: 'install' workingDir: '$(Build.SourcesDirectory)\browser' + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: | + Write-Output $pwd + + ((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json + workingDirectory: '$(Build.SourcesDirectory)\browser' + - task: Npm@1 inputs: command: 'custom' From 5590d96ab0d65433c680c6fc0f952802ec9a2e03 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Thu, 2 Nov 2023 18:42:38 +0200 Subject: [PATCH 09/25] Further work on the pipeline --- azure-pipelines/build-pipeline.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 0ad9463fc..e6a51b6a8 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -35,11 +35,13 @@ jobs: versionSpec: '16.x' - task: Npm@1 + displayName: 'npm install' inputs: command: 'install' workingDir: '$(Build.SourcesDirectory)\browser' - task: PowerShell@2 + displayName: 'Apply very special configuration' inputs: targetType: 'inline' script: | @@ -49,6 +51,7 @@ jobs: workingDirectory: '$(Build.SourcesDirectory)\browser' - task: Npm@1 + displayName: 'npm run build' inputs: command: 'custom' workingDir: '$(Build.SourcesDirectory)\browser' From e83225a53e6d118506923457693b616ed906f337 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 10:26:53 +0200 Subject: [PATCH 10/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index e6a51b6a8..d12471670 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -27,6 +27,7 @@ jobs: displayName: Build steps: - checkout: self + clean: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process - task: NodeTool@0 From 8b3b9e96734c72179ab8f4f1ec8cdf9f47d0c4ff Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 10:29:16 +0200 Subject: [PATCH 11/25] Add explicit full workspace cleaning --- azure-pipelines/build-pipeline.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index d12471670..a2a2bd49d 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -25,6 +25,8 @@ pool: jobs: - job: displayName: Build + workspace: + clean: all steps: - checkout: self clean: true From 13f9591a5c54837468e2be71a2cf31d1ecbd4bb6 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 11:03:20 +0200 Subject: [PATCH 12/25] Clean resources only --- azure-pipelines/build-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index a2a2bd49d..87cdb1840 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -26,7 +26,7 @@ jobs: - job: displayName: Build workspace: - clean: all + clean: resources steps: - checkout: self clean: true From 12d94eea09a0bf20f94a72585783b950191d9c63 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 11:24:33 +0200 Subject: [PATCH 13/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 87cdb1840..01ccb47ec 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -13,7 +13,7 @@ name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) # TODO: Remove this section this out as soon as the state of the vnext branch is good enough resources: repositories: - - repository: self + - repository: selfi type: github ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process name: igniteui-angular-examples @@ -29,6 +29,12 @@ jobs: clean: resources steps: - checkout: self + enabled: false + clean: true + path: igniteui-angular-examples # this is explicitly required by the samples browser build process + + - checkout: selfi + enabled: true clean: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process From 0e545fdac27c5d0a4445defbbd1d824352f1f633 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 11:26:40 +0200 Subject: [PATCH 14/25] Explicit GitHub endpoint ID --- azure-pipelines/build-pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 01ccb47ec..e684c733a 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -14,6 +14,7 @@ name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) resources: repositories: - repository: selfi + endpoint: '7826d0cd-89a0-45b7-835e-a43a504431d6' type: github ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process name: igniteui-angular-examples From 15a9d21af0eab05a7216324f8e908cec93232933 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 11:26:55 +0200 Subject: [PATCH 15/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index e684c733a..0e0a96094 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -14,7 +14,7 @@ name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) resources: repositories: - repository: selfi - endpoint: '7826d0cd-89a0-45b7-835e-a43a504431d6' + endpoint: 'ESShared' type: github ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process name: igniteui-angular-examples From 995fac7422c58828db9e878678959931f9b0009c Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 11:30:14 +0200 Subject: [PATCH 16/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 0e0a96094..6a1d4c7ee 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -29,7 +29,7 @@ jobs: workspace: clean: resources steps: - - checkout: self + - checkout: none enabled: false clean: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process From 59c242f0169f702c909c45292398c3cee4aa7e01 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 11:32:38 +0200 Subject: [PATCH 17/25] Different approach to getting the last build-able commit --- azure-pipelines/build-pipeline.yml | 31 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 6a1d4c7ee..48a77b806 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -11,13 +11,12 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) # TODO: Remove this section this out as soon as the state of the vnext branch is good enough -resources: - repositories: - - repository: selfi - endpoint: 'ESShared' - type: github - ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process - name: igniteui-angular-examples +#resources: +# repositories: +# - repository: self +# type: github +# ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process +# name: igniteui-angular-examples pool: @@ -29,16 +28,14 @@ jobs: workspace: clean: resources steps: - - checkout: none - enabled: false - clean: true - path: igniteui-angular-examples # this is explicitly required by the samples browser build process - - - checkout: selfi - enabled: true + - checkout: self clean: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process + - script: | + cd $(build.sourcesdirectory) + git reset --hard eebcb2a + workingDirectory: $(Build.SourcesDirectory)\igniteui-angular-examples - task: NodeTool@0 inputs: versionSource: 'spec' @@ -48,7 +45,7 @@ jobs: displayName: 'npm install' inputs: command: 'install' - workingDir: '$(Build.SourcesDirectory)\browser' + workingDir: '$(Build.SourcesDirectory)\igniteui-angular-examples\browser' - task: PowerShell@2 displayName: 'Apply very special configuration' @@ -58,13 +55,13 @@ jobs: Write-Output $pwd ((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json - workingDirectory: '$(Build.SourcesDirectory)\browser' + workingDirectory: '$(Build.SourcesDirectory)\igniteui-angular-examples\browser' - task: Npm@1 displayName: 'npm run build' inputs: command: 'custom' - workingDir: '$(Build.SourcesDirectory)\browser' + workingDir: '$(Build.SourcesDirectory)\igniteui-angular-examples\browser' customCommand: 'run build' # TODO get steps from TFS pipeline. We need to do an npm install for sure From 205450d7c214959ab0288a05b4b77ae60abf5b67 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 16:50:57 +0200 Subject: [PATCH 18/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 48a77b806..802f3ae7f 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -35,7 +35,7 @@ jobs: - script: | cd $(build.sourcesdirectory) git reset --hard eebcb2a - workingDirectory: $(Build.SourcesDirectory)\igniteui-angular-examples + workingDirectory: $(Build.SourcesDirectory) - task: NodeTool@0 inputs: versionSource: 'spec' @@ -45,7 +45,7 @@ jobs: displayName: 'npm install' inputs: command: 'install' - workingDir: '$(Build.SourcesDirectory)\igniteui-angular-examples\browser' + workingDir: '$(Build.SourcesDirectory)\browser' - task: PowerShell@2 displayName: 'Apply very special configuration' @@ -55,13 +55,13 @@ jobs: Write-Output $pwd ((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json - workingDirectory: '$(Build.SourcesDirectory)\igniteui-angular-examples\browser' + workingDirectory: '$(Build.SourcesDirectory)\browser' - task: Npm@1 displayName: 'npm run build' inputs: command: 'custom' - workingDir: '$(Build.SourcesDirectory)\igniteui-angular-examples\browser' + workingDir: '$(Build.SourcesDirectory)\browser' customCommand: 'run build' # TODO get steps from TFS pipeline. We need to do an npm install for sure From 3a0075d3deeb1c4be70e7d554cf74e176e181abe Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 16:57:28 +0200 Subject: [PATCH 19/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 802f3ae7f..a46a7f0b8 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -30,6 +30,7 @@ jobs: steps: - checkout: self clean: true + persistCredentials: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process - script: | From de35c67f720c937e663527ee0c4d3ad00f96abfe Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 3 Nov 2023 17:00:15 +0200 Subject: [PATCH 20/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index a46a7f0b8..86ae6cf70 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -34,8 +34,8 @@ jobs: path: igniteui-angular-examples # this is explicitly required by the samples browser build process - script: | - cd $(build.sourcesdirectory) - git reset --hard eebcb2a + git fetch --all + git checkout eebcb2a workingDirectory: $(Build.SourcesDirectory) - task: NodeTool@0 inputs: From 6b292cb4ebdf4688cb60ea096cae92b8c3665d0e Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Mon, 6 Nov 2023 18:27:59 +0200 Subject: [PATCH 21/25] Final steps of the pipeline --- azure-pipelines/build-pipeline.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 86ae6cf70..fe3d4844a 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -3,6 +3,7 @@ trigger: include: - 'vnext' - 'btraykov-azure-pipeline' + - 'master' # This pipeline is meant to run on changes pushed to the vnext branch only. # If it runs on PRs, it will create PRs to the destination repos' vnext branches - we don't want that. @@ -11,13 +12,6 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) # TODO: Remove this section this out as soon as the state of the vnext branch is good enough -#resources: -# repositories: -# - repository: self -# type: github -# ref: eebcb2a # last known ref where the npm build is successful - need it to verify the newly-developed release process -# name: igniteui-angular-examples - pool: name: BuildAgentOnPrem @@ -35,8 +29,10 @@ jobs: - script: | git fetch --all - git checkout eebcb2a + git checkout 01c89a2 workingDirectory: $(Build.SourcesDirectory) + + # eebcb2a - last build-able commit in vnext - task: NodeTool@0 inputs: versionSource: 'spec' @@ -65,11 +61,25 @@ jobs: workingDir: '$(Build.SourcesDirectory)\browser' customCommand: 'run build' + - task: CopyFiles@2 + inputs: + SourceFolder: '$(Build.SourcesDirectory)\browser' + Contents: 'web.config' + TargetFolder: '$(Build.SourcesDirectory)\browser\dist' + OverWrite: true + + - task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Pipeline.Workspace)' + artifact: '$(Build.SourcesDirectory)\browser\dist' + publishLocation: 'pipeline' + # TODO get steps from TFS pipeline. We need to do an npm install for sure # explicitly install npx (global?) and igniteui-cli - latest versionS # use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) # follow steps & pray to Jesus + # 1. npm install # 2. gulp updateBrowser # 3. Copy-Item "$rootpath\@infragistics\*" -Destination "$rootpath" -Recurse # Move @infragistics\* folders up From 3fc5cd598937b6699f5cd12d1cfdb1c229f83167 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Mon, 6 Nov 2023 18:49:13 +0200 Subject: [PATCH 22/25] Fix artifact publishing --- azure-pipelines/build-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index fe3d4844a..ffcad8a3c 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -70,8 +70,8 @@ jobs: - task: PublishPipelineArtifact@1 inputs: - targetPath: '$(Pipeline.Workspace)' - artifact: '$(Build.SourcesDirectory)\browser\dist' + targetPath: '$(Build.SourcesDirectory)\browser\dist' + artifact: 'dist' publishLocation: 'pipeline' # TODO get steps from TFS pipeline. We need to do an npm install for sure From cb516e31f6a1c4eec9f74688460fd7922721ed8f Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 17 Nov 2023 15:36:49 +0200 Subject: [PATCH 23/25] Adjust a few comments on the pipelines --- azure-pipelines/build-pipeline.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index ffcad8a3c..48d844122 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -11,7 +11,7 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) -# TODO: Remove this section this out as soon as the state of the vnext branch is good enough +# TODO: Remove this section out as soon as the state of the vnext branch is good enough pool: name: BuildAgentOnPrem @@ -74,18 +74,5 @@ jobs: artifact: 'dist' publishLocation: 'pipeline' - # TODO get steps from TFS pipeline. We need to do an npm install for sure - # explicitly install npx (global?) and igniteui-cli - latest versionS - # use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) - # follow steps & pray to Jesus - - - # 1. npm install - # 2. gulp updateBrowser - # 3. Copy-Item "$rootpath\@infragistics\*" -Destination "$rootpath" -Recurse # Move @infragistics\* folders up - # 4. ((Get-Content -Path package.json -Raw) -replace 'build --configuration production','build --configuration production --base-href=/angular-demos-dv/') | Set-Content -Path package.json - # 5. npm run build - - # TODO Convert Octopus Deploy deployment to Azure release pipeline & pray to Jesus - - # \ No newline at end of file + # TODO Once the project can adhere to the IG Angular schematic, + # use it or use npx to call igniteui-cli to apply the Angular schematic (trial -> licensed) \ No newline at end of file From 9628262660ec836592693b1685c8597e9e1aa86c Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Fri, 17 Nov 2023 16:09:57 +0200 Subject: [PATCH 24/25] Temp use latest in my branch --- azure-pipelines/build-pipeline.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index 48d844122..d3393f2a5 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -11,7 +11,7 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) -# TODO: Remove this section out as soon as the state of the vnext branch is good enough + pool: name: BuildAgentOnPrem @@ -27,10 +27,11 @@ jobs: persistCredentials: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process - - script: | - git fetch --all - git checkout 01c89a2 - workingDirectory: $(Build.SourcesDirectory) +# TODO: Remove this section out as soon as the state of the vnext branch is good enough +# - script: | +# git fetch --all +# git checkout 01c89a2 +# workingDirectory: $(Build.SourcesDirectory) # eebcb2a - last build-able commit in vnext - task: NodeTool@0 From 7445dd1bb414b6c2c23154b529c8160d6321a0a4 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Mon, 20 Nov 2023 16:48:48 +0200 Subject: [PATCH 25/25] Update build-pipeline.yml for Azure Pipelines --- azure-pipelines/build-pipeline.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/azure-pipelines/build-pipeline.yml b/azure-pipelines/build-pipeline.yml index d3393f2a5..6f8033884 100644 --- a/azure-pipelines/build-pipeline.yml +++ b/azure-pipelines/build-pipeline.yml @@ -11,8 +11,6 @@ pr: none name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r) - - pool: name: BuildAgentOnPrem @@ -27,13 +25,6 @@ jobs: persistCredentials: true path: igniteui-angular-examples # this is explicitly required by the samples browser build process -# TODO: Remove this section out as soon as the state of the vnext branch is good enough -# - script: | -# git fetch --all -# git checkout 01c89a2 -# workingDirectory: $(Build.SourcesDirectory) - - # eebcb2a - last build-able commit in vnext - task: NodeTool@0 inputs: versionSource: 'spec'