I have the need to use a variable for the package ID of a common release project.
I have set the PackageId variable as a prompt/required variable in the project.
Using the Azure DevOps create release plugin, I specify the parameters and the log shows the following being used:
create-release “–space=Spaces-1” “–project=Projects-363” “–releaseNumber=20210421.16” “–server=https://ACME2.corp.com/ACME” “–apiKey=***” --enableServiceMessages “–deployTo=Environments-262” --variable DeleteFilesInExportFolder:TRUE --variable PackageId:AdventureWorks --variable IncludeIdenticalObjectsInChangeReport:FALSE --version 20210421.16 --variable TargetSqlServerInstance:ACME1.corp.com --variable TargetDatabaseName:AdventureWorks
An error occurs however.
Could not find any packages with ID ‘’ in the feed ‘Octopus Server (built-in)’
Here is the variable listing for the project.
If I enter a default value of AdventureWorks for package ID in the UI screen, the release creation works.
The package version for some steps was not specified. Going to try and resolve those automatically…
Finding latest package for step: Deploy Package
Selected ‘AdventureWorks’ version ‘20210421.19.0’ for ‘Deploy Package’
Selected the release plan for Channel ‘Default’ - it is a perfect match
Using version number provided on command-line: 20210421.19
I would like to use a parameter for the package ID since I have a generic release process for several databases. I do not want to create separate projects for each of them.
Thanks in advance!