访问 Xcode Server CI bot 运行中的构建文件夹(环境变量?) [英] Access build folder in Xcode Server CI bot run (env variables?)

查看:19
本文介绍了访问 Xcode Server CI bot 运行中的构建文件夹(环境变量?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要访问在每次机器人集成期间动态创建的文件夹.在其中一次运行中是这样的 -

I need to access the folder that is created dynamically during each bot integration. On one of the run it is something like this -

/Library/Developer/XcodeServer/Integrations/Caches/a3c682dd0c4d569a3bc84e58eab88a48/DerivedData/Build/Products/Debug-iphonesimulator/my.app

/Library/Developer/XcodeServer/Integrations/Caches/a3c682dd0c4d569a3bc84e58eab88a48/DerivedData/Build/Products/Debug-iphonesimulator/my.app

我想在后置触发器中访问此文件夹,我该怎么做?根据 wwdc 的谈话,似乎正在使用一些环境变量,如XCS_INTEGRATION_RESULT"和 XCS_ERROR_COUNT 等.我还可以在日志中看到 PROJECT_DIR 之类的内容.

I would like to get to this folder in an post trigger, how do I go about it? Based on the wwdc talk it seems like some environment variables like 'XCS_INTEGRATION_RESULT' and XCS_ERROR_COUNT etc.. are being used. Also I can see in logs something like PROJECT_DIR.

但我无法从命令行访问这些变量中的任何一个(是因为我是与机器人不同的用户吗?)另外我在哪里可以找到这个 CI 系统创建的变量列表?

But I can't access any of these variables from my command line(is it because I am a different user than the bot?) Also where can I find the list of variables created by this CI system?

推荐答案

我一直在回显设置到bot日志,我的bot脚本的第一行很简单

I have been echoing set to the bot log, the first line of my bot script is simply

set   

当您在集成完成后查看日志时,它将在您的触发器输出中.

When you view the log after the integration is complete it will be in your trigger output.

XCS_ANALYZER_WARNING_CHANGE=0
XCS_ANALYZER_WARNING_COUNT=0
XCS_ARCHIVE=/Library/Developer/XcodeServer/Integrations/Integration-76eb5292bd7eff1bfe4160670c2d4576/Archive.xcarchive
XCS_BOT_ID=4f7c7e65532389e2a741d29758466c18
XCS_BOT_NAME='Reader'
XCS_BOT_TINY_ID=00B0A7D
XCS_ERROR_CHANGE=0
XCS_ERROR_COUNT=0
XCS_INTEGRATION_ID=76eb5292bd7eff1bfe4160670c2d4576
XCS_INTEGRATION_NUMBER=15
XCS_INTEGRATION_RESULT=warnings
XCS_INTEGRATION_TINY_ID=FF39BC2
XCS_OUTPUT_DIR=/Library/Developer/XcodeServer/Integrations/Integration-76eb5292bd7eff1bfe4160670c2d4576
XCS_PRODUCT='Reader.ipa'
XCS_SOURCE_DIR=/Library/Developer/XcodeServer/Integrations/Caches/4f7c7e65532389e2a741d29758466c18/Source
XCS_TESTS_CHANGE=0
XCS_TESTS_COUNT=0
XCS_TEST_FAILURE_CHANGE=0
XCS_TEST_FAILURE_COUNT=0
XCS_WARNING_CHANGE=36
XCS_WARNING_COUNT=36

这篇关于访问 Xcode Server CI bot 运行中的构建文件夹(环境变量?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆