Skip to content

Artifactory Conan Task: Conan 2.0 not supported #377

@t-moe

Description

@t-moe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions