Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用无人机 0.5。我们的构建过程编译代码以生成部署到工件存储库的工件。我需要对这个工件的引用,以便在以后的构建步骤中使用。
有没有办法在构建步骤之间传递任意数据?也许通过环境变量?
我不知道在构建过程中创建环境变量并将它们持久化,但文件系统肯定会被保留。因此,您可以将所需的任何数据放入文件中以供下一步使用。