这似乎应该在作业的打包阶段完成,但文档是在作业的控制脚本中完成的。
但是,当我 ssh 进入机器时,我添加到路径中的二进制文件不再在路径中。
你的假设是正确的,我不确定你引用了什么文档,但二进制文件应该在packages
该spec
文件告诉主管在哪里blobs
可以找到二进制文件:
---
name: bamboo-agent
dependencies:
files:
- bamboo/atlassian-bamboo-5.9.7.tar.gz
该packaging
文件告诉它在作业的虚拟机上放置这些文件的位置。
# abort script on any command that exits with a non zero value
set -e
# agent jar is within the full installation tar, pull it out.
tar -xzf $BOSH_COMPILE_TARGET/bamboo/atlassian-bamboo-5.9.7.tar.gz
cp -a atlassian-bamboo-5.9.7/atlassian-bamboo/admin/agent/atlassian-bamboo-agent-installer-5.9.7.jar $BOSH_INSTALL_TARGET/
控制脚本可能会使用这些二进制文件,但不应操纵它们。
请参阅https://bosh.io/docs/create-release.html#pkg-skeletons,了解软件包如何适应 BOSH 版本的概述。