在CI/CD中提供静态报告
我正在使用竹子,但是对于其他平台来说应该相似。我的构建计划之一在进行了一些单元测试,静态分析等之后生成一个静态网站,并具有结果和一些有用的指标。
本网站上没有邮政请求,只需获取请求,没有登录或外部互动,只有JSON,HTML,CSS和JS可以作为静态网站的一部分发货。我可以在本地查看报告的方式是通过通常的服务命令。
我想知道如何将此Stati网站部署到Bamboo CD,以便可以运行管道并在网络浏览器中查看结果,而无需下载静态网站。
我正在寻找一些指针,我现在正在研究部署计划,但我感到迷失了。
I am using Bamboo, but it should be similar for other platforma. One of my build plans generates a static website after performing some unit tests, static analysis and so on, with the results and some useful metrics.
There is no POST requests in this website, just GET requests, there is no login or external interactions, just JSON, HTML, CSS and JS that gets served, which is shipped as part of the static website. The way I can view the report locally is by the usual serve command.
I was wondering how can I deploy this stati website to Bamboo CD, so that I can run a pipeline and see the results in the web browser without having to download the static website.
I am looking for some pointers, I am looking at deployment plans right now but I feel lost.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您的静态内容也是构建过程后的工件。您可以使用竹制部署,尤其是SCP任务,在该任务中,您将工件转移到远程服务器(Apache,nginx或类似的东西)并将其复制到 /HTML路径中。
也许您还需要使用SSH任务,如果SCP任务不自动处理,则可以解压缩工件。
您还可以将触发器设置为“成功构建后”,该构建工作后立即部署您的网站
I suppose your static content is also an artifact after the build process. You could use Bamboo Deployments, especially the SCP Task where you transfer your artifact to a remote server (apache, nginx, or something like that) and copy it into the /html path.
Maybe you will also need to use an SSH Task where you unzip the artifact if the SCP task doesn't handle it automatically.
You can also set triggers to "after successful build" which deploys your website immediately after your build job