1

我需要验证我们的柯南是否将 Artifactory 设置为远程仓库,并确保“ASDC-Jenkins”是用户并且它使用 HTTPS。我将如何开始这个?

# Check to make sure conan compiler defined in the default profile matches system compiler
CONAN_COMPILER=`conan profile show default | grep 'compiler.version'| awk '{print $2}'`
if [ $ID = "OSX" ] ; then 
    CLANG_VERSION=`clang -v 2>&1 | grep version | sed 's/.*version \([0-9]*.[0-9]*.[0-9]*\) .*/\1/g'`
    if [ ! $CONAN_COMPILER = $CLANG_VERSION ] ; then 
        echo "WARNING:  The compiler version in the conan default profile does not match the one the system reports"
    fi
fi
if [ $ID = "Linux" ] ; then 
    if [ ! $CONAN_COMPILER = $COMPILERVER ] ; then 
        echo "WARNING:  The compiler version in the conan default profile does not match the one the system reports"
    fi
fi
4

1 回答 1

2

对于第一项,您需要运行以下命令:

$ conan remote list

而不是profile show检查柯南远程参考

此外,作为提示,您还可以使用以下命令从共享配置中定义遥控器,而不是检查它:

$ conan config install <url or git repo>

这将安装在柯南客户端远程、配置文件和其他配置中,以确保所有开发人员和 CI 机器共享相同的配置

要获取用户,您需要以下命令:

$ conan user

它将显示每个遥控器当前的活动用户。检查参考here

于 2018-01-11T08:34:05.437 回答