Skip to content

Commit

Permalink
Update build pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Mar 22, 2019
1 parent d88add4 commit 6017579
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions DevOps-ApplyDTLArtifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ jobs:
inputs:
FileUrl: 'https://raw.githubusercontent.com/Yvand/AzureRM-Templates/dev/DevTestLabs-Artifacts/manage-artifacts/apply-dtl-artifact.ps1'
DestinationFolder: '$(System.DefaultWorkingDirectory)\drop\$(ConfigureServerFolderName)'

- task: automagically.DownloadFile.DownloadFile.DownloadFile@1
displayName: 'Download ConfigureLab.ps1'
inputs:
FileUrl: 'https://raw.githubusercontent.com/Yvand/AzureRM-Templates/dev/DevTestLabs-Artifacts/manage-artifacts/ConfigureLab.ps1'
DestinationFolder: '$(System.DefaultWorkingDirectory)\drop\$(ConfigureServerFolderName)'

- task: automagically.DownloadFile.DownloadFile.DownloadFile@1
displayName: 'Download ConfigureLab.psm1'
inputs:
FileUrl: 'https://raw.githubusercontent.com/Yvand/AzureRM-Templates/dev/DevTestLabs-Artifacts/manage-artifacts/ConfigureLab.psm1'
DestinationFolder: '$(System.DefaultWorkingDirectory)\drop\$(ConfigureServerFolderName)'

- task: AzurePowerShell@3
displayName: 'Apply artifact "Azure Pipelines Agent"'
Expand Down Expand Up @@ -97,6 +109,18 @@ jobs:
inputs:
FileUrl: 'https://raw.githubusercontent.com/Yvand/AzureRM-Templates/dev/DevTestLabs-Artifacts/manage-artifacts/apply-dtl-artifact.ps1'
DestinationFolder: '$(System.DefaultWorkingDirectory)\drop\$(ConfigureServerFolderName)'

- task: automagically.DownloadFile.DownloadFile.DownloadFile@1
displayName: 'Download ConfigureLab.ps1'
inputs:
FileUrl: 'https://raw.githubusercontent.com/Yvand/AzureRM-Templates/dev/DevTestLabs-Artifacts/manage-artifacts/ConfigureLab.ps1'
DestinationFolder: '$(System.DefaultWorkingDirectory)\drop\$(ConfigureServerFolderName)'

- task: automagically.DownloadFile.DownloadFile.DownloadFile@1
displayName: 'Download ConfigureLab.psm1'
inputs:
FileUrl: 'https://raw.githubusercontent.com/Yvand/AzureRM-Templates/dev/DevTestLabs-Artifacts/manage-artifacts/ConfigureLab.psm1'
DestinationFolder: '$(System.DefaultWorkingDirectory)\drop\$(ConfigureServerFolderName)'

- task: AzurePowerShell@3
displayName: 'Apply artifact "Azure Pipelines Agent"'
Expand Down
6 changes: 6 additions & 0 deletions DevOps-Compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
variables:
SolutionFileName: '$(system.teamProject).sln'
IntegrationTestsDataFolderName: 'Integration tests data'
ConfigureServerFolderName: Configure server

jobs:
- job: Compile
Expand Down Expand Up @@ -36,6 +37,11 @@ jobs:
$projectLocalPath = "$(System.DefaultWorkingDirectory)\$(system.teamProject)"
$devTestLabsLocalPath = "$(Build.ArtifactStagingDirectory)\$(IntegrationTestsDataFolderName)"
# Create now folder that will contain later scripts to configure local test server
if ((Test-Path -Path $(ConfigureServerFolderName) -PathType Container) -eq $false) {
New-Item -ItemType Directory -Path $(ConfigureServerFolderName)
}
Write-Output ("Copy signing key from $(DownloadSecureFile.secureFilePath) to $projectLocalPath")
Copy-Item "$(DownloadSecureFile.secureFilePath)" -Destination "$projectLocalPath"
Expand Down

0 comments on commit 6017579

Please sign in to comment.