-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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, bredej, yrtimiD and stefankaufmann
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working