douyi6168
2016-01-11 21:27使用Jenkins进行应用CI
I try to setup CI for Go app and Jenkins. Jenkins Go Plugin has been installed, it gets correct version of Go(currently it's 1.5.2).
Currently I have next:
Test repository with simple app https://github.com/Agnikay/Test-Go-Jenkins
Jenkins with installed Go Plugin(on VPS, Ubuntu 14.04, x86)
-
For build in Jenkins added as build step next:
cd src/main go build main.go
As result in artifacts existing 2 files - main.go(sources) and main (executable) for linux x86. If i use as build command go build main.go -o server
error received: "named files must be .go files".
So, my questions are
- If my app will contain much more code file, packages etc. should i still build it as
go build main.go
? - How correctly give name for
go build
output file to add it to the artifacts? - Should i use some kind of make file/script etc to collect dependencies on build machine? What is best practice here?
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 如何在Go GAE应用程序上可视化代码覆盖率信息?
- code-coverage
- unit-testing
- 1个回答
- 使用Jenkins进行应用CI
- jenkins
- 1个回答