Fix build VM step

This commit is contained in:
MaksimZhukov
2020-09-14 02:09:16 +03:00
parent b89beb150d
commit 7f3dce9705

View File

@@ -28,29 +28,28 @@ jobs:
SourceFolder: 'images/macos/provision/log/' SourceFolder: 'images/macos/provision/log/'
RemoveSourceFolder: true RemoveSourceFolder: true
- task: PowerShell@2 - pwsh: |
./images.CI/macos/build-image.ps1 -Image "${{ parameters.image_name }}" `
-VcenterServer "$(vcenter_server_v2)" `
-VcenterUsername "$(vcenter_username_v2)" `
-VcenterPassword "$(vcenter_password_v2)" `
-VcenterDatacenter "$(vcenter_datacenter_v2)" `
-EsxiCluster "$(esxi_cluster_v2)" `
-TargetDatastore "${{ parameters.target_datastore }}" `
-OutputFolder "mms-output" `
-VmUsername "$(vm_username)" `
-VmPassword "$(vm_password)" `
-BuildId "$(Build.BuildNumber)" `
-BaseImageName "${{ parameters.base_image_name }}" `
-AzureStorageSas "$(AZURE_STORAGE_SAS)" `
-AzureStorageAccount "$(AZURE_STORAGE_ACCOUNT)" `
-BuildAssetsUrl "$(appcenter_build_assets_url)" `
-GithubFeedToken "$(GITHUB_FEED_TOKEN)" `
-XcodeInstallationUser "$(xcode-installation-user)" `
-XcodeInstallationPassword "$(xcode-installation-password)"
displayName: 'Build VM' displayName: 'Build VM'
inputs: env:
targetType: filePath PACKER_LOG: 0
filePath: ./images.CI/macos/build-image.ps1
arguments: -Image "${{ parameters.image_name }}" `
-VcenterServer "$(vcenter_server_v2)" `
-VcenterUsername "$(vcenter_username_v2)" `
-VcenterPassword "$(vcenter_password_v2)" `
-VcenterDatacenter "$(vcenter_datacenter_v2)" `
-EsxiCluster "$(esxi_cluster_v2)" `
-TargetDatastore "${{ parameters.target_datastore }}" `
-OutputFolder "mms-output" `
-VmUsername "$(vm_username)" `
-VmPassword "$(vm_password)" `
-BuildId "$(Build.BuildNumber)" `
-BaseImageName "${{ parameters.base_image_name }}" `
-AzureStorageSas "$(AZURE_STORAGE_SAS)" `
-AzureStorageAccount "$(AZURE_STORAGE_ACCOUNT)" `
-BuildAssetsUrl "$(appcenter_build_assets_url)" `
-GithubFeedToken "$(GITHUB_FEED_TOKEN)" `
-XcodeInstallationUser "$(xcode-installation-user)" `
-XcodeInstallationPassword "$(xcode-installation-password)"
workingDirectory: 'images/macos' workingDirectory: 'images/macos'
- bash: | - bash: |