-
Notifications
You must be signed in to change notification settings - Fork 0
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
Jenkins createRelease not using User Specified package #148
Comments
Did some more digging, if I use additionalArgs to pass in
That gives the expected result of the Stackexchange.Opserver package being User Specified
Looking at octopus-jenkins-plugin/src/main/java/hudson/plugins/octopusdeploy/OctopusDeployReleaseRecorder.java Line 388 in d13768b
--package=packageName:packageVersion format.
But if I leave packageReferenceName out of the packages map, I get an error. Possibly because the Packages constructor takes 3 args octopus-jenkins-plugin/src/main/java/hudson/plugins/octopusdeploy/PackageConfiguration.java Line 43 in d13768b
There is also a log statement here: octopus-jenkins-plugin/src/main/java/hudson/plugins/octopusdeploy/OctopusDeployReleaseRecorder.java Line 492 in d13768b
The stacktrace from not having the packageReferenceName suggests that is an issue.
|
Looks like if I specifically set the packageReferenceName to a blank string like so
The octo CLI command also looks correct and I get a
So that is a possible workaround to this issue. |
Hi
I have been experimenting with replacing our
octo create-release
withoctopusCreateRelease
in our Jenkins pipelines.I noticed that the generated code when using createRelease doesn't seem to create User Specified packages, Octopus always selects the latest pushed package.
For example:
output shows
When using octopusCreateRelease:
it generates:
But the packages always show
Latest Available
instead ofUser Specified
.With the code the way it is currently, it seems the package code doesn't match the format here: https://octopus.com/docs/octopus-rest-api/octopus-cli/create-release
It looks like the format it's trying to match is
StepName:PackageName:Version
, but the names in the package map don't match those names. It expects packageName, packageReferenceName and packageVersion.As an experiment, I tried
which generates
but that still shows
Is this a bug?
How do I get the release to be created with a specific package and not just choosing the latest when using octopusCreateRelease?
The text was updated successfully, but these errors were encountered: