I have a project with 2 steps:
-
Step1
: a “Run a script” step with a package referencePackage1
, -
Step2
: a “Deploy a Windows Service” step with package IDPackage1
.
I upload 2 versions of Package1
: 1.0.0
and 1.0.1
.
I run a create-release command and try to specify Package1 version 1.0.0 to be used, but it doesn’t work as I expected. I try the following ways to specify the package version:
The PackageID:PackageVersion format
dotnet octo create-release --project MultiplePackagesTest --package Package1:1.0.0 --version 5.5.5 --ignoreexisting --whatif
Release plan for MultiplePackagesTest 5.5.5
Channel: 'Default' (this is the default channel)
# Name Package Name Version Source Version rules
--- ------- -------------- --------- ------------------ -------------------
1 Step1 Package1 1.0.1 Latest available Allow any version
2 Step2 1.0.0 User specified Allow any version
The StepName:PackageVersion format for each step
dotnet octo create-release --project MultiplePackagesTest --package Step1:1.0.0 --package Step2:1.0.0 --version 5.5.5 --ignoreexisting --whatif
Release plan for MultiplePackagesTest 5.5.5
Channel: 'Default' (this is the default channel)
# Name Package Name Version Source Version rules
--- ------- -------------- --------- ------------------ -------------------
1 Step1 Package1 1.0.1 Latest available Allow any version
2 Step2 1.0.0 User specified Allow any version
The *:PackageVersion format
dotnet octo create-release --project MultiplePackagesTest --package *:1.0.0 --version 5.5.5 --ignoreexisting --whatif
Release plan for MultiplePackagesTest 5.5.5
Channel: 'Default' (this is the default channel)
# Name Package Name Version Source Version rules
--- ------- -------------- --------- ------------------ -------------------
1 Step1 Package1 1.0.1 Latest available Allow any version
2 Step2 1.0.0 User specified Allow any version
When I additionally provide a 3-parts package specification (StepName:PackageName:PackageVersion), it works, also with *
for step name, for example:
dotnet octo create-release --project MultiplePackagesTest --package Package1:1.0.0 --package *:Package1:1.0.0 --version 5.5.5 --ignoreexisting --whatif
Release plan for MultiplePackagesTest 5.5.5
Channel: 'Default' (this is the default channel)
# Name Package Name Version Source Version rules
--- ------- -------------- --------- ---------------- -------------------
1 Step1 Package1 1.0.0 User specified Allow any version
2 Step2 1.0.0 User specified Allow any version
But according to the documentation, the 2-part package specification should work for script steps as well (the 3-parts version is described as an additional one that can be used). Is this a bug in the octo
tool or in the documentation?
I’m using octo
version 6.12.0
.