jfrog-azure-devops-extension icon indicating copy to clipboard operation
jfrog-azure-devops-extension copied to clipboard

Tasks adds server-id option to 'jf tfc'

Open harishatk opened this issue 3 years ago • 1 comments

Describe the bug Calling the cli from this task to configure terraform for Module publishing results in following error:

[Error] Incorrect Usage: flag provided but not defined: -server-id [Error] flag provided but not defined: -server-id

To Reproduce task: JfrogCliV2@1 inputs: jfrogPlatformConnection: 'my_jfrog_v2' command: 'jf tfc --server-id-deploy="$(artifactoryHost)" --repo-deploy="$(artifactoryRepositoryName)"'

The task sets the --server-id option but the cli does not recognize this option for the command.

Expected behavior terraform configurations are to get set

Versions

JFrog Azure DevOps Extension version: 2.2.0 CLI version: 2.19.0 , 2.25.5, 2.28.1 Agent operating system: ubuntu-latest

harishatk avatar Nov 01 '22 11:11 harishatk

We're having the same problem...It's weird that you are using a parameter that is wrongly named. Should be --server-id-deploy as per your documentation (not --server-id)...Perhaps adding another helper function (task utils) for terraform that uses a parameter name --server-id-deploy as expected?

simbo1984 avatar Dec 16 '22 18:12 simbo1984