From 27b371af48f8e6f28a7a350c8e7f06512d352c8a Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Mon, 29 Dec 2025 11:16:39 +0530 Subject: [PATCH 01/10] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1227a87..86e23ea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,8 +1,21 @@ -trigger: none -pool: Default +trigger: none +pool: mahesh_pool -steps: -- task: PowerShell@2 - inputs: - targetType: 'inline' - script: 'Write-Host "Hello World"' \ No newline at end of file +stages: +- stage: + jobs: + - job: Build + steps: + - task: NodeTool@0 + inputs: + versionSource: 'spec' + versionSpec: '16.x' + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: 'npm install' + + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: 'npm run install' From 27d30178007085d371f2e6adf2fc9677f624ddca Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Mon, 29 Dec 2025 11:25:13 +0530 Subject: [PATCH 02/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 86e23ea..a3fe57e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,21 +1,19 @@ trigger: none + pool: mahesh_pool stages: -- stage: +- stage: Build jobs: - - job: Build - steps: - - task: NodeTool@0 - inputs: - versionSource: 'spec' - versionSpec: '16.x' - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: 'npm install' + - job: Build + steps: + - task: NodeTool@0 + inputs: + versionSpec: '16.x' - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: 'npm run install' + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: | + npm install + npm run build From 4aaa2c52e669715e0090e46b57f3efb281e0887b Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Mon, 29 Dec 2025 12:32:28 +0530 Subject: [PATCH 03/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a3fe57e..79b1f4b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -17,3 +17,17 @@ stages: script: | npm install npm run build + - task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build/' + includeRootFolder: true + archiveType: 'zip' + archiveFile: '$(System.DefaultWorkingDirectory)/build.zip' + replaceExistingArchive: true + - task: AzureCLI@2 + inputs: + azureSubscription: 'new_infra' + scriptType: 'ps' + scriptLocation: 'inlineScript' + inlineScript: 'az storage blob upload-batch --account-name stg23 --destination cont23 --source build --overwrite' + From 4d78e16132ce418d2a46e79cc3eda29e43651ed2 Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 12:31:59 +0530 Subject: [PATCH 04/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 79b1f4b..1e3ea51 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,4 +1,7 @@ -trigger: none +trigger: + branches: + include: + - devolope pool: mahesh_pool @@ -24,10 +27,9 @@ stages: archiveType: 'zip' archiveFile: '$(System.DefaultWorkingDirectory)/build.zip' replaceExistingArchive: true - - task: AzureCLI@2 - inputs: - azureSubscription: 'new_infra' - scriptType: 'ps' - scriptLocation: 'inlineScript' - inlineScript: 'az storage blob upload-batch --account-name stg23 --destination cont23 --source build --overwrite' + - task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(System.DefaultWorkingDirectory)/build.zip' + artifact: 'Build' + publishLocation: 'pipeline' \ No newline at end of file From a7382eb2cd465a65008db1a58708e8bff72ed5b0 Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 12:50:50 +0530 Subject: [PATCH 05/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1e3ea51..9329252 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,6 +30,6 @@ stages: - task: PublishPipelineArtifact@1 inputs: - targetPath: '$(System.DefaultWorkingDirectory)/build.zip' + targetPath: '$(System.DefaultWorkingDirectory)/build' artifact: 'Build' publishLocation: 'pipeline' \ No newline at end of file From ae4826c70cfc6fd3a6c3815b3e81d09cdc4dff50 Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 13:48:02 +0530 Subject: [PATCH 06/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9329252..e8769f5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,4 +32,9 @@ stages: inputs: targetPath: '$(System.DefaultWorkingDirectory)/build' artifact: 'Build' - publishLocation: 'pipeline' \ No newline at end of file + publishLocation: 'pipeline' + + - task: PowerShell@2 + inputs: + targetType: 'inline' + script: 'curl -u $(NEXUS_USER):$(NEXUS_PASS) --upload-file $(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip $(NEXUS_URL)/repository/$(NEXUS_REPO)/build-$(Build.BuildId).zip' \ No newline at end of file From 9431cfec68840d8cfef9f03a4af65070302c9610 Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 14:04:53 +0530 Subject: [PATCH 07/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e8769f5..9f4140b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,34 +7,37 @@ pool: mahesh_pool stages: - stage: Build + displayName: Build & Upload to Nexus jobs: - job: Build steps: + - task: NodeTool@0 inputs: versionSpec: '16.x' - task: PowerShell@2 + displayName: npm install & build inputs: targetType: 'inline' script: | npm install npm run build + - task: ArchiveFiles@2 + displayName: Zip build folder inputs: - rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build/' + rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build' includeRootFolder: true archiveType: 'zip' - archiveFile: '$(System.DefaultWorkingDirectory)/build.zip' + archiveFile: '$(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip' replaceExistingArchive: true - - - task: PublishPipelineArtifact@1 - inputs: - targetPath: '$(System.DefaultWorkingDirectory)/build' - artifact: 'Build' - publishLocation: 'pipeline' - task: PowerShell@2 + displayName: Upload artifact to Nexus inputs: targetType: 'inline' - script: 'curl -u $(NEXUS_USER):$(NEXUS_PASS) --upload-file $(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip $(NEXUS_URL)/repository/$(NEXUS_REPO)/build-$(Build.BuildId).zip' \ No newline at end of file + script: | + $zip = "$(System.DefaultWorkingDirectory)\build-$(Build.BuildId).zip" + $url = "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip" + curl -u $env:NEXUS_USER`:$env:NEXUS_PASS --upload-file $zip $url From cf5f1416234bb53e456959200e6cd69fd01a2e42 Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 14:23:24 +0530 Subject: [PATCH 08/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9f4140b..202eaca 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,12 +32,8 @@ stages: archiveType: 'zip' archiveFile: '$(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip' replaceExistingArchive: true - - task: PowerShell@2 - displayName: Upload artifact to Nexus inputs: targetType: 'inline' - script: | - $zip = "$(System.DefaultWorkingDirectory)\build-$(Build.BuildId).zip" - $url = "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip" - curl -u $env:NEXUS_USER`:$env:NEXUS_PASS --upload-file $zip $url + script: 'curl.exe -u "$($env:NEXUS_USER):$($env:NEXUS_PASS)" --upload-file "$(System.DefaultWorkingDirectory)\build-$(Build.BuildId).zip" "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip"''' + \ No newline at end of file From cf9817ffd6f7a7a65940ef0a79e7dac1cfddacaf Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 14:43:04 +0530 Subject: [PATCH 09/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 202eaca..fbeeb77 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,16 +24,16 @@ stages: npm install npm run build - - task: ArchiveFiles@2 - displayName: Zip build folder - inputs: - rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build' - includeRootFolder: true - archiveType: 'zip' - archiveFile: '$(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip' - replaceExistingArchive: true + # - task: ArchiveFiles@2 + # displayName: Zip build folder + # inputs: + # rootFolderOrFile: '$(System.DefaultWorkingDirectory)/build' + # includeRootFolder: true + # archiveType: 'zip' + #archiveFile: '$(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip' + # replaceExistingArchive: true - task: PowerShell@2 inputs: targetType: 'inline' - script: 'curl.exe -u "$($env:NEXUS_USER):$($env:NEXUS_PASS)" --upload-file "$(System.DefaultWorkingDirectory)\build-$(Build.BuildId).zip" "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip"''' + script: 'curl.exe -u "$($env:NEXUS_USER):$($env:NEXUS_PASS)" --upload-file "$(System.DefaultWorkingDirectory)\build-$(Build.BuildId).zip" "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip"' \ No newline at end of file From 297f4ddce3e431e29ab36a4d31b5e8a4a95877b6 Mon Sep 17 00:00:00 2001 From: mahi9823 Date: Tue, 30 Dec 2025 14:59:40 +0530 Subject: [PATCH 10/10] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fbeeb77..9b28432 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,5 +35,7 @@ stages: - task: PowerShell@2 inputs: targetType: 'inline' - script: 'curl.exe -u "$($env:NEXUS_USER):$($env:NEXUS_PASS)" --upload-file "$(System.DefaultWorkingDirectory)\build-$(Build.BuildId).zip" "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip"' + script: | + curl.exe -u "$env:NEXUS_USER:$env:NEXUS_PASS" --upload-file "$(System.DefaultWorkingDirectory)/build-$(Build.BuildId).zip" "$env:NEXUS_URL/repository/$env:NEXUS_REPO/build-$(Build.BuildId).zip" + \ No newline at end of file