同步操作将从 腾讯蓝鲸智云/bk-ci 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Agent consists of backend worker-agent.jar and agent (Go) two parts.
Agent is written in Golang. Currently it supports Linux, Windows and macOS three operating systems. No compilation verification has been performed on other operating systems.
For the convenience of compilation, all the compilation dependencies have been put in the vendor folder of the source code.
It is recommended to use Golang 1.12 for compilation.
It is not recommended to use cross compilation to create agent executables.
Compile on Linux: build_linux.sh
Compile on Windows: build_windows.bat
Compile on macOS: build_macos.sh
The outputs are stored in the following files (installation packages) in the agent/bin directory:
|- devopsAgent.exe
|- devopsAgent_linux
|- devopsAgent_macos
|- devopsDaemon.exe
|- devopsDaemon_linux
|- devopsDaemon_macos
|- upgrader.exe
|- upgrader_linux
|- upgrader_linux
In the /data/bkee/bkci root directory:
|- agent-package # Location of Agent installation package
|- config
|- .agent.properties # Agent configuration file
|- jar
|- worker-agent.jar # release/worker-agent.jar compiled from the backend/worker submodule
|- jre
|- linux
|- jre.zip # JRE 1.8 for Linux. bcprov-jdk16-1.46.jar should be added to lib/ext.
|- windows
|- jre.zip # JRE 1.8 for Windows. bcprov-jdk16-1.46.jar should be added to lib/ext.
|- macos
|- jre.zip # JRE 1.8 for macOS. bcprov-jdk16-1.46.jar should be added to lib/ext.
|- upgrade # Stores goAgent upgrade packages. Packages created from agent builds are stored here.
|- devopsAgent.exe
|- devopsAgent_linux
|- devopsAgent_macos
|- devopsDaemon.exe
|- devopsDaemon_linux
|- devopsDaemon_macos
|- upgrader.exe
|- upgrader_linux
|- upgrader_linux
|- script # Stores scripts that control the start and stop of Agent installation
|- linux
|- windows
|- macos
Agent consists of devopsDaemon and devopsAgent compiled by Go and backend/release/worker-agent.jar.
This directory is used to store JRE for Linux/Windows/macOS and serves as the Java execution environment for worker-agent.jar.
zip -r jre.zip *
. In other words, the jre/ directory no longer exists in the zip file.Only one Agent can be installed on one machine and this Agent can belong to only one project simultaneously.
devops.project.id=##projectId##
devops.agent.id=##agentId##
devops.agent.secret.key=##agentSecretKey##
landun.gateway=##gateWay##
devops.parallel.task.count=4
landun.env=##landun.env##
devops.master.restart.hour=0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。