Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline general setting -Cannot config disable creation of classic build and classic release pipelines #133

Open
xuzhang3 opened this issue May 23, 2023 · 6 comments

Comments

@xuzhang3
Copy link
Contributor

API: https://learn.microsoft.com/en-us/rest/api/azure/devops/build/general-settings/update?view=azure-devops-rest-7.1
Cannot modify disableClassicPipelineCreation though API v7.0, 7.1-preview.1 even with ORG configuration disabled.

image
@citrix-pradeep
Copy link

When can we expect fix for this .. or any alternative api to disable this.

@citrix-pradeep
Copy link

Tried below code but doesnt seems to be working.

$url = "https://dev.azure.com/$organization/$project/_apis/build/generalsettings?api-version=7.1-preview.1"

$headers = @{
Authorization = "Basic " + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":$($pat)"))
}

$body = @{
disableClassicBuildPipelineCreation = $true
} | ConvertTo-Json

$response = Invoke-RestMethod -Uri $url -Method Patch -Headers $headers -ContentType "application/json" -Body $body

@xuzhang3
Copy link
Contributor Author

@citrix-pradeep This is API bug and confirmed by service team.

@quilter-sridharadama
Copy link

Commenting for solution.

@quilter-sridharadama
Copy link

any update on this?

@xuzhang3
Copy link
Contributor Author

xuzhang3 commented Oct 23, 2023

disableClassicPipelineCreation is replaced by disableClassicReleasePipelineCreation, disableClassicBuildPipelineCreation. Hope SDK will fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants