Conversation
f3643f4 to
e2b5a11
Compare
08ad62a to
a6a8314
Compare
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
201e703 to
cd1c074
Compare
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
329a6a9 to
1ecea8b
Compare
zentron
left a comment
There was a problem hiding this comment.
Will continue and read through it, but run into a problem.
I've created a CreateRelease step via the old cli, gone to use it with the new cli, and ran into an issue due to a default parameter no longer being default
Running command: octopus release create --project SimpleArgo --output-format json --no-prompt
Creating Octopus Deploy release
Starting process...
space must be specified when not running interactively; please set the OCTOPUS_SPACE environment variable or specify --space on the command line
It appears that SpaceId, which was previously optional (I think it would default to looking for Default) is now required in the new cli.
Consider how we want to deal with this change. The simplest might be to hard-code the default to Default outside the cli invocation if its not set in the form, but perhaps first confirm that this kind if behaviour is what happens with the old cli
Are there any other fields that are no longer optional?
|
Not particularly a problem, but out of interest why use a fork rather than working off the main repo? |
I didn't had permission to |
Thanks for the reminder also saw it now as I was preparing a Demo for EMEA, I will add it
there are no additional fields that are no longer optional |
5987373 to
a1ec35e
Compare
unfortunately no, there is no verbose flag in the new cli |
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
83c49e1 to
3db416b
Compare
zentron
left a comment
There was a problem hiding this comment.
Thanks @chen-keinan, appreciate the slow back and forth with this one.
One, hopefully last question, is with regards to the Additional Fields property on the steps. When these steps are using the old cli, then any value customers have set there will presumably be working. When it toggles to the new cli tool however, these will be unlikely to work.

There is a brief mention of this "problem" in this ticket.
The thinking will be that we should default the toggle to on this additional field is not supplied.
Given this current work really only takes affect if the feature toggle is on, im assuming that the plan is merge this work in, safely behind the feature toggle, then look at setting it up to be the default, with appropriate warnings etc?
@zentron thanks for the feedback. I have a few questions to make sure I understand the requirements correctly before implementing it: In the ticket you mentioned three main conditions that should cause the plugin to fall back to the Legacy CLI: a. If the environment variable OCTOPUS_LEGACYTCPLUGIN=true — does that mean the plugin will run the new CLI by default unless this variable is set? b. If the Additional fields contain options that are not supported by the new CLI. c. If the server version is lower than 3+. When either condition (a or b) occurs, a warning log should be written at the beginning of the task and in the UI logs. In any case, we should also log a warning that usage of v1 and v2 servers will not be supported in future plugin versions. |
Yep thats a good idea. I would probably say in the build log since thats probably more prominent. What do you think? Given the las bits to put in place before we can enable by default, im fine for you to merge what you have before tackling the next part to make it use the new cli by default. Thanks for looking into this one. |
yes , I think we are on the same page on this one :) |
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
octopus-agent/src/main/java/octopus/teamcity/agent/EmbeddedResourceExtractor.java
Fixed
Show fixed
Hide fixed
octopus-agent/src/main/java/octopus/teamcity/agent/EmbeddedResourceExtractor.java
Fixed
Show fixed
Hide fixed
octopus-agent/src/main/java/octopus/teamcity/agent/EmbeddedResourceExtractor.java
Fixed
Show fixed
Hide fixed
octopus-agent/src/main/java/octopus/teamcity/agent/EmbeddedResourceExtractor.java
Fixed
Show fixed
Hide fixed
octopus-agent/src/main/java/octopus/teamcity/agent/EmbeddedResourceExtractor.java
Fixed
Show fixed
Hide fixed
Signed-off-by: Chen Keinan <hen.keinan@gmail.com>
1926315 to
2790320
Compare
|
Duplicate to #183 |


Description
New cli support
Close
This enhancement supports the following commands:
Note:
Promote Releaseis not included, as it is not supported by the new CLI. If a user invokesPromote Release, the system will fall back to the old CLI.Support for the new CLI is controlled via the environment variable
OCTOPUS_NEW_CLI. By default, the Legacy CLI is used.