You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to create build information with ./ in the package id results in a
There was a problem with your request.
- The package ID contains invalid characters. Examples of valid package IDs include 'MyPackage' and 'MyPackage.Sample'.
There are scenarios where build information can be associated with packages that have a ./ in it eg. A package can have an id of ./package-name when it does not have an Azure Dev Ops organization
Reproduction
Using LINQPad, set apiKey and server
<Query Kind="Statements">
<NuGetReference>Octopus.Client</NuGetReference>
<Namespace>Microsoft.Extensions.DependencyInjection</Namespace>
<Namespace>System.Net.Http</Namespace>
<Namespace>System.Text.Json</Namespace>
<Namespace>System.Threading.Tasks</Namespace>
<Namespace>Octopus.Client</Namespace>
<Namespace>Octopus.Client.Model</Namespace>
<Namespace>Octopus.Client.Model.BuildInformation</Namespace>
<Namespace>Octopus.Client.Model.IssueTrackers</Namespace>
<IncludeAspNet>true</IncludeAspNet>
</Query>
var apiKey = "API-";
var server = "";
var client = new OctopusClient(new OctopusServerEndpoint(server, apiKey));
var global = client.Repository;
var spaceRepository = client.Repository.ForSpace(client.Repository.Spaces.FindByName("Default"));
spaceRepository.BuildInformationRepository.Push(
packageId: "Te./t",
version: "1.0.0",
octopusMetadata: new OctopusBuildInformation()
{
Branch = "refs/heads/main",
BuildEnvironment = "Production",
BuildNumber = "1",
BuildUrl = "https://build.server.com/Samples.BuildInformation/1",
VcsCommitNumber = "100",
VcsRoot = "https://github.com/TestOrg/Samples.BuildInformation",
VcsType = "Git",
Commits = new[] {
new Commit
{
Id = "f61aa91b0204c796be1b77e983240229e203914e",
Comment = "Fixes #1"
}
}
},
OverwriteMode.OverwriteExisting
);
Error and Stacktrace
No response
More Information
No response
Workaround
No response
The text was updated successfully, but these errors were encountered:
The Octopus engineering team has reviewed this issue.
After careful consideration, we’ve classed this low priority. This means we won’t work on it in the near future.
We prioritize issues based on the number of people affected, the impact type, and available workarounds.
If you’ve encountered this issue and haven’t informed our support team, please email support@octopus.com. Knowing how many people this issue affects helps us determine its priority.
Severity
No response
Version
2020.3
Latest Version
I could reproduce the problem in the latest build
What happened?
Attempting to create build information with
./
in the package id results in aThere are scenarios where build information can be associated with packages that have a
./
in it eg. A package can have an id of./package-name
when it does not have an Azure Dev Ops organizationReproduction
Using LINQPad, set
apiKey
andserver
Error and Stacktrace
No response
More Information
No response
Workaround
No response
The text was updated successfully, but these errors were encountered: