简体   繁体   English

在MAC上转到ThoughtWorks PATH进行蚂蚁构建

[英]Go ThoughtWorks PATH on MAC for ant build

I have created a pipeline in Go from ThoughtWorks that fails. 我在ThoughtWorks的Go语言中创建了失败的管道。 The error message is about not finding ant in the PATH. 该错误消息是关于在PATH中找不到蚂蚁。 I have defined an Environment where I override the PATH variable, but that does not seem to work. 我定义了一个环境,在该环境中我覆盖了PATH变量,但这似乎不起作用。

Source code: https://github.com/aavella77/junit-sample.git 源代码: https : //github.com/aavella77/junit-sample.git

I can compile using ant from a terminal. 我可以从终端使用ant进行编译。 Not sure how to setup the PATH using Go. 不确定如何使用Go设置PATH。 Any suggestions? 有什么建议么?

[go] Start to prepare junit-sample-Pipeline/25/defaultStage/1/defaultJob on AAVELLA-M-G0AM [/Applications/Go Agent.app] at Sun Jan 25 22:13:16 PST 2015

[go] Start updating files at revision bae3528396b34f842ebe495fefd9f3a37dfb5f6d from https://github.com/aavella77/junit-sample.git
[GIT] Fetch and reset in working directory pipelines/junit-sample-Pipeline
[GIT] Cleaning all unversioned files in working copy
[GIT] Cleaning submodule configurations in .git/config
[GIT] Fetching changes
[GIT] Performing git gc
[GIT] Updating working copy to revision bae3528396b34f842ebe495fefd9f3a37dfb5f6d
HEAD is now at bae3528 Create build.xml
[GIT] Removing modified files in submodules
[GIT] Cleaning all unversioned files in working copy

[go] Start to build junit-sample-Pipeline/25/defaultStage/1/defaultJob on AAVELLA-M-G0AM [/Applications/Go Agent.app] at Sun Jan 25 22:13:17 PST 2015

[go] Current job status: passed.

[go] Start to execute task: <ant buildfile="build.xml" />. 
[go] setting environment variable 'GO_ENVIRONMENT_NAME' to value 'Production'
[go] overriding environment variable 'PATH' with value '/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin/ant/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/bin/ant/bin'
[go] setting environment variable 'GO_SERVER_URL' to value 'https://127.0.0.1:8154/go/'
[go] setting environment variable 'GO_TRIGGER_USER' to value 'anonymous'
[go] setting environment variable 'GO_PIPELINE_NAME' to value 'junit-sample-Pipeline'
[go] setting environment variable 'GO_PIPELINE_COUNTER' to value '25'
[go] setting environment variable 'GO_PIPELINE_LABEL' to value '25'
[go] setting environment variable 'GO_STAGE_NAME' to value 'defaultStage'
[go] setting environment variable 'GO_STAGE_COUNTER' to value '1'
[go] setting environment variable 'GO_JOB_NAME' to value 'defaultJob'
[go] setting environment variable 'GO_REVISION' to value 'bae3528396b34f842ebe495fefd9f3a37dfb5f6d'
[go] setting environment variable 'GO_TO_REVISION' to value 'bae3528396b34f842ebe495fefd9f3a37dfb5f6d'
[go] setting environment variable 'GO_FROM_REVISION' to value 'bae3528396b34f842ebe495fefd9f3a37dfb5f6d'
[go] setting environment variable 'JUNIT_HOME' to value '/Library/JUNIT'
[go] setting environment variable 'CLASSPATH' to value '$CLASSPATH:/Library/JUNIT/junit-4.10.jar:.'
[go] setting environment variable 'ANT_HOME' to value '/usr/bin/ant/bin'
Error happened while attempting to execute 'ant -f build.xml'. 
Please make sure [ant] can be executed on this agent.

[Debug Information] Environment variable PATH: /usr/bin:/bin:/usr/sbin:/sbin

[go] Start to create properties junit-sample-Pipeline/25/defaultStage/1/defaultJob on AAVELLA-M-G0AM [/Applications/Go Agent.app] at Sun Jan 25 22:13:18 PST 2015

[go] Start to upload junit-sample-Pipeline/25/defaultStage/1/defaultJob on AAVELLA-M-G0AM [/Applications/Go Agent.app] at Sun Jan 25 22:13:18 PST 2015

[go] Job completed junit-sample-Pipeline/25/defaultStage/1/defaultJob on AAVELLA-M-G0AM [/Applications/Go Agent.app] at Sun Jan 25 22:13:18 PST 2015

Thanks in advance, 提前致谢,

There's a problem with $PATH setting on agents for OSX. OSX代理上的$ PATH设置存在问题。 You can find details along with the solution logged here. 您可以在此处找到详细信息以及解决方案。

https://github.com/gocd/gocd/issues/852 https://github.com/gocd/gocd/issues/852

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM