DevOps服务在BlueMix/hub.jazz中与Go不兼容,无法正常工作。

huangapple go评论79阅读模式
英文:

DevOps Services tests not working in BlueMix/hub.jazz with Go

问题

我正在尝试对我的软件进行测试,因为它即将通过git部署到blueMix。目前的流程是'构建阶段' -> '部署阶段',现在我正在尝试在这个过程中实现'测试阶段'。

我的测试阶段有一个测试任务,'测试类型'是'simple'。我目前的命令是:

#!/bin/bash
# 在这里执行测试
go test

然而,测试阶段失败并返回:

_build.sh: 第3行:go: 命令未找到
构建步骤'执行shell'将构建标记为失败

显然,在测试阶段没有安装go。我应该让测试服务器在每次新的git推送时安装Go来进行测试,还是我完全错了?

谢谢!

英文:

I'm trying to run tests on my software as it's about to be deployed via git to blueMix. Currently the pipeline is 'build stage' -> 'deploy stage', and now I'm trying to implement the 'test stage' in the middle of that process.

My test stage has a test job, and the Tester Type is simple. The command I have currently is:

#!/bin/bash
# invoke tests here
go test

, however the test stage fails and returns:

_build.sh: line 3: go: command not found
Build step 'Execute shell' marked build as failure

Evidently go isn't installed at the testing stage. Do I get the test server to install Go on each new git push to test it, or am I sorely mistaken?

Thanks!

答案1

得分: 1

这是正确的。运行作业的环境中只预装了特定的工具。你可以在这里找到它们:https://hub.jazz.net/docs/deploy_var/#resources - 其他所有的工具都需要每次运行作业时安装。

英文:

That's correct. There are only certain tools pre-installed in the enviroment that runs the jobs. You can find them here: https://hub.jazz.net/docs/deploy_var/#resources - Everything else would have to be installed each time the job is run.

huangapple
  • 本文由 发表于 2015年8月19日 18:50:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/32093418.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定