Our Pipeline Fails At The Create VM Release Stage #9572
Unanswered
DominionDMS-Build
asked this question in
General questions
Replies: 1 comment 1 reply
-
Hello @DominionDMS-Build . For manual image generation you do not have to use pipelines from "./images.CI/" directory. All what your need for starting image builds you can find in docs/create-image-and-azure-resources.md . |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have been trying to build devops agent but each time we do get to the create_release.ps1 script/stage it fails with this error:
2024-03-26T20:41:20.8069157Z Generating script.
2024-03-26T20:41:20.8982107Z Formatted command: . 'T:\agent_work\8\s\images.CI\linux-and-win\create-release.ps1' -BuildId 70790
-Organization
-DefinitionId 15-Project ITDevOps
-ImageType "windows2022"-ManagedImageName "windows2022-70790"
-AccessToken ***2024-03-26T20:41:20.9338881Z ========================== Starting Command Output ===========================
2024-03-26T20:41:20.9642461Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'T:\agent_work_temp\af99ea6e-ad47-4e1b-bf4b-75fc6e7aa6e5.ps1'"
2024-03-26T20:41:21.7460386Z Invoke-RestMethod : {"$id":"1","innerException":null,"message":"Variable(s) ImageType, ManagedImageName do not exist
2024-03-26T20:41:21.7461502Z in the release pipeline at scope: Release. New variables cannot be added while creating a release. Check the scope of
2024-03-26T20:41:21.7462102Z the variable(s) or remove them and try
2024-03-26T20:41:21.7462597Z again.","typeName":"Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException, Microsof
2024-03-26T20:41:21.7463303Z t.VisualStudio.Services.ReleaseManagement2.Data","typeKey":"InvalidRequestException","errorCode":0,"eventId":3000}
2024-03-26T20:41:21.7463947Z At T:\agent_work\8\s\images.CI\linux-and-win\create-release.ps1:34 char:15
2024-03-26T20:41:21.7464501Z + ... ewRelease = Invoke-RestMethod $URL -Body $Body -Method "POST" -Header ...
2024-03-26T20:41:21.7465026Z + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-03-26T20:41:21.7465635Z + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
2024-03-26T20:41:21.7466099Z eption
2024-03-26T20:41:21.7466583Z + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
2024-03-26T20:41:21.8447972Z ##[error]PowerShell exited with code '1'.
2024-03-26T20:41:21.9118877Z ##[section]Finishing: Create release for VM deployment
Beta Was this translation helpful? Give feedback.
All reactions