Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
		
							parent
							
								
									50b18605d0
								
							
						
					
					
						commit
						5008dd1bc8
					
				| @ -6,47 +6,98 @@ | |||||||
| trigger: | trigger: | ||||||
| - main | - main | ||||||
| 
 | 
 | ||||||
| pool: |  | ||||||
|   vmImage: 'windows-latest' |  | ||||||
| 
 |  | ||||||
| variables: | variables: | ||||||
|   solution: '**/*.sln' |   solution: '**/*.sln' | ||||||
|   buildPlatform: 'Any CPU' |   buildPlatform: 'Any CPU' | ||||||
|   buildConfiguration: 'Release' |   buildConfiguration: 'Release' | ||||||
| 
 | 
 | ||||||
| steps: | pool: | ||||||
|  |   vmImage: 'ubuntu-latest' # This default pool will be used for Linux builds | ||||||
| 
 | 
 | ||||||
| - task: NodeTool@0 | stages: | ||||||
|   inputs: | - stage: Build | ||||||
|     versionSource: 'spec' |   jobs: | ||||||
|     versionSpec: '20.x' |   - job: LinuxBuild | ||||||
|  |     displayName: 'Build on Linux' | ||||||
|  |     pool: | ||||||
|  |       vmImage: 'ubuntu-latest' # Specify the Linux agent | ||||||
|  |     steps: | ||||||
|  |       - task: NodeTool@0 | ||||||
|  |         inputs: | ||||||
|  |           versionSource: 'spec' | ||||||
|  |           versionSpec: '20.x' | ||||||
| 
 | 
 | ||||||
| - task: Npm@1 |       - task: Npm@1 | ||||||
|   inputs: |         inputs: | ||||||
|     command: 'custom' |           command: 'custom' | ||||||
|     workingDir: 'EnotaryoPH/EnotaryoPH.Web' |           workingDir: 'EnotaryoPH/EnotaryoPH.Web' | ||||||
|     customCommand: 'install --production' |           customCommand: 'install --production' | ||||||
|  | 
 | ||||||
|  |       - task: PowerShell@2 | ||||||
|  |         inputs: | ||||||
|  |           targetType: 'inline' | ||||||
|  |           script: | | ||||||
|  |             npm install rimraf -g | ||||||
|  |             npm install parcel -g | ||||||
|  | 
 | ||||||
|  |       - task: NuGetCommand@2 | ||||||
|  |         inputs: | ||||||
|  |           restoreSolution: '$(solution)' | ||||||
|  | 
 | ||||||
|  |       - task: DotNetCoreCLI@2 | ||||||
|  |         inputs: | ||||||
|  |           command: 'custom' | ||||||
|  |           custom: 'publish' | ||||||
|  |           arguments: '-o $(Build.ArtifactStagingDirectory)' | ||||||
|  |           configuration: '$(buildConfiguration)' | ||||||
|  | 
 | ||||||
|  |       - task: PublishBuildArtifacts@1 | ||||||
|  |         inputs: | ||||||
|  |           PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||||||
|  |           ArtifactName: 'drop' | ||||||
|  |           publishLocation: 'Container' | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |   - job: WindowsBuild | ||||||
|  |     displayName: 'Build on Windows' | ||||||
|  |     pool: | ||||||
|  |       vmImage: 'windows-latest' # Specify the Windows agent | ||||||
|  |     steps: | ||||||
|  |       - task: NodeTool@0 | ||||||
|  |         inputs: | ||||||
|  |           versionSource: 'spec' | ||||||
|  |           versionSpec: '20.x' | ||||||
|  | 
 | ||||||
|  |       - task: Npm@1 | ||||||
|  |         inputs: | ||||||
|  |           command: 'custom' | ||||||
|  |           workingDir: 'EnotaryoPH/EnotaryoPH.Web' | ||||||
|  |           customCommand: 'install --production' | ||||||
|  | 
 | ||||||
|  |       - task: PowerShell@2 | ||||||
|  |         inputs: | ||||||
|  |           targetType: 'inline' | ||||||
|  |           script: | | ||||||
|  |             npm install rimraf -g | ||||||
|  |             npm install parcel -g | ||||||
|  | 
 | ||||||
|  |       - task: NuGetCommand@2 | ||||||
|  |         inputs: | ||||||
|  |           restoreSolution: '$(solution)' | ||||||
|  | 
 | ||||||
|  |       - task: DotNetCoreCLI@2 | ||||||
|  |         inputs: | ||||||
|  |           command: 'custom' | ||||||
|  |           custom: 'publish' | ||||||
|  |           arguments: '-o $(Build.ArtifactStagingDirectory)' | ||||||
|  |           configuration: '$(buildConfiguration)' | ||||||
|  | 
 | ||||||
|  |       - task: PublishBuildArtifacts@1 | ||||||
|  |         inputs: | ||||||
|  |           PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||||||
|  |           ArtifactName: 'drop' | ||||||
|  |           publishLocation: 'Container' | ||||||
| 
 | 
 | ||||||
| - task: PowerShell@2 |  | ||||||
|   inputs: |  | ||||||
|     targetType: 'inline' |  | ||||||
|     script: | |  | ||||||
|       npm install rimraf -g |  | ||||||
|       npm install parcel -g |  | ||||||
| 
 | 
 | ||||||
| - task: NuGetCommand@2 |  | ||||||
|   inputs: |  | ||||||
|     restoreSolution: '$(solution)' |  | ||||||
| 
 | 
 | ||||||
| - task: DotNetCoreCLI@2 |  | ||||||
|   inputs: |  | ||||||
|     command: 'custom' |  | ||||||
|     custom: 'publish' |  | ||||||
|     arguments: '-o $(Build.ArtifactStagingDirectory)' |  | ||||||
|     configuration: '$(buildConfiguration)' |  | ||||||
| 
 | 
 | ||||||
| - task: PublishBuildArtifacts@1 |  | ||||||
|   inputs: |  | ||||||
|     PathtoPublish: '$(Build.ArtifactStagingDirectory)' |  | ||||||
|     ArtifactName: 'drop' |  | ||||||
|     publishLocation: 'Container' |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user