Hi there,
I have a CI and ReleaseCandidate build that push the same package up to Octopus with the only difference being one is tagged -CI, the other -RC.
Prerelease info is date+buildrev
My CI build pushed this package up "11.0.0-meta2016021506-CI"
My RC build pushed 11.0.0-meta2016021503-RC
I am passing the channel and version as an additional arguement. Yet the task fails with:
"The requested package versions for the following steps violate the channel version rules: Deploy Octo.Test.Feature. Please specify a different package version, channel or provide the ignoreChannelRules
parameter to override this check."
If I try to manually create the release in Octopus, it selects the correct package and creates the release as expected. So it appears to me that everything is setup correctly.
Everything looks ok in the build logs, up until the point it selects the version for the release, am I doing something incorrectly or is there a bug?:
2016-02-14T20:41:10.9943917Z Path to Octo.exe = E:\Installs\agent\tasks\OctopusCreateRelease\0.3.0\Octo.exe
2016-02-14T20:41:10.9943917Z E:\Installs\agent\tasks\OctopusCreateRelease\0.3.0\Octo.exe create-release --project="Octo.Test.Feature" --server=myServer --apiKey=myapikey --releaseNotesFile="E:_work\e29783df\a\release-notes-e6ccfbec-e802-4e16-9ccb-f36c4577b933.md" --channel=ReleaseCandidate --version=11.0.0-meta2016021503-RC
2016-02-14T20:41:11.1193825Z Octopus Deploy Command Line Tool, version 3.2.0.91
2016-02-14T20:41:11.3068966Z Handshaking with Octopus server: "OurOctopusServer"
2016-02-14T20:41:11.5569017Z Handshake successful. Octopus version: 3.2.6; API version: 3.0.0
2016-02-14T20:41:11.6194018Z Authenticated as: OurServiceAccount<> (a service account)
Finding project: Octo.Test.Feature
2016-02-14T20:41:15.3851322Z Finding channel
2016-02-14T20:41:15.4476323Z Finding deployment process for project: Octo.Test.Feature
2016-02-14T20:41:15.5101313Z Finding release template...
2016-02-14T20:41:15.6195228Z Resolving NuGet package versions...
2016-02-14T20:41:15.6195228Z Finding latest NuGet package for step: Deploy Octo.Test.Feature
2016-02-14T20:41:15.8226548Z Using version number provided on command-line.
2016-02-14T20:41:15.8226548Z Release plan for release: 11.0.0-meta2016021503-RC
2016-02-14T20:41:15.8226548Z Steps:
2016-02-14T20:41:15.8226548Z # Name Version Source
2016-02-14T20:41:15.8382667Z --- ---------------------------- --------------- ------------------------------------
2016-02-14T20:41:15.8382667Z 1 Deploy Octo.Test.Feature 11.0.0-meta2016021506-CI Latest available in NuGet repository
2016-02-14T20:41:15.8382667Z Creating release...
2016-02-14T20:41:16.5882854Z Error from Octopus server (HTTP 400): There was a problem with your request.
2016-02-14T20:41:16.5882854Z - The requested package versions for the following steps violate the channel version rules: Deploy Octo.Test.Feature. Please specify a different package version, channel or provide the ignoreChannelRules
parameter to override this check.
2016-02-14T20:41:16.5882854Z Exit code: -7
2016-02-14T20:41:16.6039128Z ##[error]Unexpected exit code -7 returned from tool Octo.exe