jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
521 stars 223 forks source link

xrayIndex=true when creating a remote repo with jfrog rt rc doesn’t work #877

Closed valeriypj closed 3 years ago

valeriypj commented 3 years ago

When creating a remote repository with xrayIndex=true with $ jfrog rt rc it doesn't enable Xray indexing checkbox in Artifactory.

To Reproduce $ cat maven.json { "blockMismatchingMimeTypes": "true", "enableTokenAuthentication": "true", "key": "atlassian-nonblocking-remote-cli", "packageType": "maven", "rclass": "remote", "repoLayoutRef": "maven-2-default", "url": "https://maven.atlassian.com/repository/public", "xrayIndex": "true" }

$ jfrog rt rc maven.json

Repository created in Artifactory without Enable Indexing in Xray checkbox set.

Expected behavior The repository will be created with Enable Indexing in Xray set.

Versions

yahavi commented 3 years ago

Hi, @valeriypj. By looking into the repository configuration, I can see no xrayIndex key for remote repositories: https://www.jfrog.com/confluence/display/JFROG/Repository+Configuration+JSON#RepositoryConfigurationJSON-RemoteRepository There is an xrayIndex key only for local repositories. Furthermore, I'm not sure how this feature would work, but this is out of topic. Please let me know what you think.

yahavi commented 3 years ago

Resolved by https://github.com/jfrog/jfrog-cli-core/pull/31