Hi all,
I’m trying to use “create-release” command with “–waitfordeployment” and use it from Jenkins pipelines. Currently, I’m getting the release correctly created but the response returns and Octopus stills deploying the package.
As far as I read, Octopus command will return until deployment finishes. Is the expected behavior or am I misunderstanding the parameter?
Octo version 4.45.0 Windows.
Command I’m using.
create-release --packageVersion 1.5.0.${env.BUILD_NUMBER} --project \"xxxx xxxxx xxx\" --server http://xxxxxxxxxxxxx --apiKey ${APIKey} --channel \"Deploy To xxxxxxx\" --waitfordeployment
Octo output
Handshaking with Octopus Server: http://xxxxxxxx
Handshake successful. Octopus version: 3.3.11; API version: 3.0.0
Authenticated as: xxxxxxxxxx
This Octopus Server supports channels
Finding project: xxxxxxxxxx
Building release plan for channel 'Deploy To xxxx'...
Finding deployment process...
Finding release template...
Using version number from package step: 1.5.0.71
Release plan for xxxxxxx 1.5.0.71
Channel: 'Deploy To xxxxxxx' (this is the default channel)
# Name Version Source Version rules
--- ----------------------------- ---------- ---------------- -------------------
1 Deploy Application Binaries 1.5.0.71 User specified Allow any version
Creating release...
Release 1.5.0.71 created successfully!