jfrog / jfrog-azure-devops-extension

Apache License 2.0
47 stars 62 forks source link

Artifactory Conan Task: Conan 2.0 not supported #377

Open t-moe opened 1 year ago

t-moe commented 1 year ago

Describe the bug

The 'Artifactory Conan' Task from the Jfrog extension does not support conan 2.0

Pipeline:

  - task: ArtifactoryConan@1
    inputs:
      conanCommand: 'Add Remote'
      remoteName: 'example'
      artifactoryService: 'Example Artifactory Cloud'
      conanRepo: 'example'
      purgeExistingRemotes: true
    displayName: 'Add Artifactory Remote'

Run:

conan remote: error: unrecognized arguments: --insert

Starting: Add Artifactory Remote
==============================================================================
Task         : Artifactory Conan
Description  : This task runs a Conan command.
Version      : 1.13.6
Author       : JFrog
Help         : [More Information](https://www.jfrog.com/confluence/display/JFROG/Artifactory+Azure+DevOps+Extension#ArtifactoryAzureDevOpsExtension-TriggeringConanBuilds)
==============================================================================
Running Conan build tool from: C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts\conan.exe
Conan User Home: D:\a\1/conancache
Purging Conan remotes by removing content of D:\a\1\conancache\.conan\registry.txt
Running Conan build tool from: C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts\conan.exe
Conan User Home: D:\a\1/conancache
Running Conan command at: D:\a\1\s
C:\hostedtoolcache\windows\Python\3.9.13\x64\Scripts\conan.exe remote add example https://example.jfrog.io/artifactory/api/conan/example --insert --force
usage: conan remote [-h] [-v [V]] [--logger]
                    {add,auth,disable,enable,list,list-users,login,logout,remove,rename,set-user,update}
                    ...
conan remote: error: unrecognized arguments: --insert
ERROR: Exiting with code: 2
Failed to execute Conan Task: Conan command returned bad exit code: 2
##[error]Conan Task failed.
Finishing: Add Artifactory Remote

Current behavior

Task fails

Reproduction steps

See description above

Expected behavior

Do not specify --insert, as it is not supported with conan 2.0

Azure DevOps extension name and version

JFrog.jfrog-artifactory-vsts-extension 1.13.6

We've switched to the JFrog.jfrog-azure-devops-extension extension 2.3.0, there the issue is the same.

JFrog CLI version

??

Operating system type and version

Ubuntu 22.04

JFrog Artifactory version (if relevant)

No response

JFrog Xray version (if relevant)

No response

JFrog Distribution version (if relevant)

No response

DavidRadoorHummel commented 1 year ago

This would be nice to have as Conan V2 introduces many breaking changes.

Our development teams still use V1, but I can imagine that some forerunners will start to migrate soon.

0000matteo0000 commented 1 year ago

any update on this?

t-moe commented 1 year ago

Any updates on this? This is really a blocking issue for us @yahavi

0000matteo0000 commented 1 year ago

434