【发布时间】:2018-01-10 15:24:13
【问题描述】:
我需要验证我们的 Conan 是否将 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
【问题讨论】:
-
不确定您要在代码中完成什么。您询问有关将 Artifactory 检查为远程的问题。这可以在
conan remote list中显示。您很可能对conan config install功能感兴趣,该功能允许在柯南客户端中配置远程,因此所有开发人员和 CI 机器共享相同的配置。关于用户,命令conan user将显示每个已定义遥控器的当前用户。请告诉我这是否有帮助。 -
谢谢,确实有帮助。我在哪里可以找到有关“柯南用户”命令和其他类似命令的信息?再次感谢
标签: rest artifactory conan