From 2b6fdfef6f7066ae36f30acb7f864cbbe2a77a9f Mon Sep 17 00:00:00 2001 From: Robert Bond Date: Fri, 2 Jul 2021 11:38:54 +0000 Subject: [PATCH 1/5] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..01442dd6 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,21 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' From 289a0eda58a9a44da4827b162832aec2c4e8b453 Mon Sep 17 00:00:00 2001 From: Gary Trembath Date: Thu, 8 Jul 2021 15:18:56 +0000 Subject: [PATCH 2/5] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 01442dd6..9a21c4c0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,3 +19,12 @@ steps: npm install npm run build displayName: 'npm install and build' + +- task: CopyFiles@2 + displayName: 'Copy Files to: $(build.artifactstagingdirectory)' + inputs: + SourceFolder: 'HelloWorld_website' + TargetFolder: '$(build.artifactstagingdirectory)' + +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' \ No newline at end of file From f6b685204c637d4b68d96f274bc9291a5be8da1b Mon Sep 17 00:00:00 2001 From: Gary Trembath Date: Thu, 8 Jul 2021 15:22:52 +0000 Subject: [PATCH 3/5] 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 9a21c4c0..13bf5fd1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,7 +23,7 @@ steps: - task: CopyFiles@2 displayName: 'Copy Files to: $(build.artifactstagingdirectory)' inputs: - SourceFolder: 'HelloWorld_website' + SourceFolder: 'FrontEnd' TargetFolder: '$(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1 From 92784ac7a2868a7d0c329920219f4028aaed1883 Mon Sep 17 00:00:00 2001 From: Gary Trembath Date: Thu, 8 Jul 2021 15:30:36 +0000 Subject: [PATCH 4/5] 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 13bf5fd1..8e8db021 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,7 +23,7 @@ steps: - task: CopyFiles@2 displayName: 'Copy Files to: $(build.artifactstagingdirectory)' inputs: - SourceFolder: 'FrontEnd' + SourceFolder: '/' TargetFolder: '$(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1 From fb18ffe2aaec58aa309405845fa3ec1d8827d4d6 Mon Sep 17 00:00:00 2001 From: Gary Trembath Date: Thu, 8 Jul 2021 15:33:35 +0000 Subject: [PATCH 5/5] 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 8e8db021..84f609af 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,7 +23,7 @@ steps: - task: CopyFiles@2 displayName: 'Copy Files to: $(build.artifactstagingdirectory)' inputs: - SourceFolder: '/' + SourceFolder: '$(agent.builddirectory)' TargetFolder: '$(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1