Comments (8)
The multiphase support in the rest api was done around 3.2 I believe.
So You probably need to set relevant VSTeamVersions item to higher than 3.2 (default is currently 3.0).
So even if your json file is of 4.0 structure, the default behavior will be to push to the 3.0 api, which does not have multiphase support and as a result βbreaksβ the build definition.
from vsteam.
This should be fixed now with PR #321 which allows also to target updates of servers @eduardohass.
from vsteam.
How large is the json file on disk? I wonder if there is a payload size I need to adjust in the post call or something.
from vsteam.
My files have 10kb.
I made a test with a release definition with 50kb and was successful.
from vsteam.
My next guess would be the format of the def has changed. I noticed that if I export a build def using API version 4.0 I can't then import it using API version 3.0. I would check the API used for the export is the same version used for the import.
from vsteam.
You can change the API version used. Run
help about_vsteam
To learn how to change the API version used.
from vsteam.
Thanks, @japj I was missing that point about multi-phase builds. I will work on a PR to update the version used in Azure DevOps.
from vsteam.
Is this still an issue?
from vsteam.
Related Issues (20)
- Get-VSTeamVariableGroup doesn't urlencode the group name HOT 1
- Allow to Update-VSTeamWorkItem to add relations with other work items HOT 7
- Add support for "elasticPools"
- Add -ReleaseParameters to Add-VSTeamRelease HOT 1
- Disabled git repos cannot be deleted HOT 1
- Add support for returning work items in Get-VSTeamGitCommit
- Set-VSTeamAccount Error on Module Import
- WorkItemIds are null HOT 3
- Add-VSTeamAccessControlEntry allows results in a (400) bad request HOT 1
- Incorrect parameter type for List parameters in Get-VsTeamBuild cmdlet HOT 2
- Add possibility to create, update and delete org wide banners
- Use of ternary operator in Remove-VSTeamDirectAssignment breaks module in Powershell versions < 7 HOT 1
- Remove-VSTeamAgent should accept pipeline output from Get-VSTeamAgent
- Update-VSTeamWorkItem -Comment Parameter
- Ignore, please delete/close this issue
- -Level Parameter Is Not Always Available When Using -SecurePersonalAccessToken Parameter with Set-VSTeamAccount
- Invoke-VSTeamRequest call to API returning content application/octet-stream fails
- Ignore, please close/delete this request
- The value of -ProjectName erroneously fails validation if the collection/account contains over 100 projects
- Latest DevOps fails to authenticate with Basic PAT base64 encoded HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsteam.