From 0147cbfb2779a9f7ca3fd32b6668fe52be21e883 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 11:48:30 +0300 Subject: [PATCH 01/14] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..7438c7453 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From e8abf84a026ad4dd04a91c9cadcd000b4c82d6e7 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 11:52:15 +0300 Subject: [PATCH 02/14] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 000000000..7438c7453 --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 2815db15a71812236f0e50d303207d979d160aa1 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 12:19:16 +0300 Subject: [PATCH 03/14] 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 7438c7453..862a13d9f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - vmImage: ubuntu-latest + name: local steps: - task: Maven@3 From a570f5063668359af2e77db96e8fc1a97afcb6d3 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 13:34:27 +0300 Subject: [PATCH 04/14] 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 862a13d9f..89d7f8ffe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - name: local + name: default steps: - task: Maven@3 From d2809c9c389927db8a66115bacf0c67d7af5bb7b Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:45:41 +0300 Subject: [PATCH 05/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 89d7f8ffe..491e90cd8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,9 +6,6 @@ trigger: - main -pool: - name: default - steps: - task: Maven@3 inputs: From 9f759fbfe328b3a58fbf33663949006a423f4074 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:48:06 +0300 Subject: [PATCH 06/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 491e90cd8..89d7f8ffe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,6 +6,9 @@ trigger: - main +pool: + name: default + steps: - task: Maven@3 inputs: From 52a7834f098b42d24127d23cc919d1f9fc3a8de3 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:49:06 +0300 Subject: [PATCH 07/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 89d7f8ffe..2188632ec 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,6 +8,7 @@ trigger: pool: name: default + demands: maven steps: - task: Maven@3 From e27037374dac51cac7e3c32ffe84d007f8040358 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:50:39 +0300 Subject: [PATCH 08/14] 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 2188632ec..22a1914a8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - name: default + name: Default demands: maven steps: From 56af4ad79e7065ffb237a1110b7a0c89087f6fad Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:51:56 +0300 Subject: [PATCH 09/14] 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 22a1914a8..a5495468b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - main pool: - name: Default + name: Default1 demands: maven steps: From 25e65ee0aaf19ad8069183e21ce10cbed7a180e3 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:52:32 +0300 Subject: [PATCH 10/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a5495468b..d90b4f541 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,8 +7,8 @@ trigger: - main pool: - name: Default1 - demands: maven + name: Default + demands: maven1 steps: - task: Maven@3 From 32b0da9a2450f79be82197fd8fb38946bdf7b462 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 14:54:59 +0300 Subject: [PATCH 11/14] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d90b4f541..7a53d4bc6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,7 +8,6 @@ trigger: pool: name: Default - demands: maven1 steps: - task: Maven@3 @@ -16,7 +15,7 @@ steps: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.8' + jdkVersionOption: '1.17' jdkArchitectureOption: 'x64' publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' From 99c4bf130c538a05f1378a17e60c4771be850e61 Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 15:22:03 +0300 Subject: [PATCH 12/14] 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 7a53d4bc6..ca881a7a7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,7 +15,7 @@ steps: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.17' + jdkVersionOption: '1.8' jdkArchitectureOption: 'x64' publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' From cb4dd976513b6077e7f4e79f9fc336cee0eaaefd Mon Sep 17 00:00:00 2001 From: KaterinaBar Date: Wed, 10 Jul 2024 15:47:52 +0300 Subject: [PATCH 13/14] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f88d52f73..b466c58cb 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,4 @@ Privacy information can be found at https://privacy.microsoft.com/en-us/ Microsoft and any contributors reserve all others rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise. +Katerina From 4c246710c675740c9e81dcdadb28546a6f6f705a Mon Sep 17 00:00:00 2001 From: Katerina Barboutsi Date: Mon, 15 Jul 2024 15:55:31 +0300 Subject: [PATCH 14/14] Add the build configuration --- azure-pipelines.yml | 69 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 53 insertions(+), 16 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ca881a7a7..220d93bf4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,22 +1,59 @@ -# Maven -# Build your Java project and run tests with Apache Maven. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/java - trigger: -- main +- '*' pool: - name: Default + vmImage: 'ubuntu-20.04' + demands: + - npm + +variables: + buildConfiguration: 'Release' + wwwrootDir: 'Tailspin.SpaceGame.Web/wwwroot' + dotnetSdkVersion: '6.x' steps: -- task: Maven@3 +- task: UseDotNet@2 + displayName: 'Use .NET SDK $(dotnetSdkVersion)' + inputs: + version: '$(dotnetSdkVersion)' + +- task: Npm@1 + displayName: 'Run npm install' + inputs: + verbose: false + +- script: './node_modules/.bin/node-sass $(wwwrootDir) --output $(wwwrootDir)' + displayName: 'Compile Sass assets' + +- task: gulp@1 + displayName: 'Run gulp tasks' + +- script: 'echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt' + displayName: 'Write build info' + workingDirectory: $(wwwrootDir) + +- task: DotNetCoreCLI@2 + displayName: 'Restore project dependencies' + inputs: + command: 'restore' + projects: '**/*.csproj' + +- task: DotNetCoreCLI@2 + displayName: 'Build the project - $(buildConfiguration)' inputs: - mavenPomFile: 'pom.xml' - mavenOptions: '-Xmx3072m' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.8' - jdkArchitectureOption: 'x64' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - goals: 'package' + command: 'build' + arguments: '--no-restore --configuration $(buildConfiguration)' + projects: '**/*.csproj' + +- task: DotNetCoreCLI@2 + displayName: 'Publish the project - $(buildConfiguration)' + inputs: + command: 'publish' + projects: '**/*.csproj' + publishWebProjects: false + arguments: '--no-build --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)/$(buildConfiguration)' + zipAfterPublish: true + +- task: PublishBuildArtifacts@1 + displayName: 'Publish Artifact: drop' + condition: succeeded() \ No newline at end of file