Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (58 sloc) 2.8 KB
variables:
build.clean: all
platform: x64
trigger: none
steps:
- task: PowerShell@2
displayName: 'Install NAV Container Helper'
inputs:
targetType: filePath
filePath: 'BuildScripts\InstallNAVContainerHelpers.ps1'
- task: PowerShell@2
displayName: 'Create Build Docker Container'
inputs:
targetType: filePath
filePath: 'BuildScripts\CreateDockerContainer.ps1'
arguments: '-credential ([PSCredential]::new("$(DockerContainerUsername)", (ConvertTo-SecureString -String "$(DockerContainerPassword)" -AsPlainText -Force)))'
- task: PowerShell@2
displayName: 'Copy Files to Docker Container'
inputs:
targetType: filePath
filePath: 'BuildScripts\CopyFilesToDockerContainer.ps1'
- task: PowerShell@2
displayName: 'Compile Single App stored in Repo'
inputs:
targetType: filePath
filePath: 'BuildScripts\CompileSingleApp.ps1'
arguments: '-Credential ([PSCredential]::new("$(DockerContainerUsername)", (ConvertTo-SecureString -String "$(DockerContainerPassword)" -AsPlainText -Force))) -BuildFolder "$(Build.Repository.LocalPath)" -BuildArtifactFolder "$(Build.ArtifactStagingDirectory)"'
failOnStderr: true
- task: PowerShell@2
displayName: 'Publish Single App'
inputs:
targetType: filePath
filePath: 'BuildScripts\PublishSingleApp.ps1'
arguments: '-Credential ([PSCredential]::new("$(DockerContainerUsername)", (ConvertTo-SecureString -String "$(DockerContainerPassword)" -AsPlainText -Force))) -BuildArtifactFolder "$(Build.ArtifactStagingDirectory)"'
failOnStderr: true
- task: PowerShell@2
displayName: 'Import and Publish Test App1'
inputs:
targetType: filePath
filePath: 'BuildScripts\ProcessTestApps.ps1'
arguments: '-AppToProcess "TestApp1" -BuildFolder "$(Build.Repository.LocalPath)" -BuildArtifactFolder "$(Build.ArtifactStagingDirectory)" -RepositoryExternalUser "$(RepositoryExternalUser)" -RepositoryExternalPAT "$(RepositoryExternalPAT)" -credential ([PSCredential]::new("$(DockerContainerUsername)", (ConvertTo-SecureString -String "$(DockerContainerPassword)" -AsPlainText -Force)))'
- task: PowerShell@2
displayName: 'Execute Automated Tests'
inputs:
targetType: filePath
filePath: 'BuildScripts\RunAutomatedTests.ps1'
arguments: '-TestResultFile (Join-Path "$(System.DefaultWorkingDirectory)" "$(TestResultFile)") -TestSuite "DEFAULT" -Credential ([PSCredential]::new("$(DockerContainerUsername)", (ConvertTo-SecureString -String "$(DockerContainerPassword)" -AsPlainText -Force)))'
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFormat: XUnit
testResultsFiles: $(TestResultFile)
failTaskOnFailedTests: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: app
You can’t perform that action at this time.