Dan*_*iro 1 bitbucket-pipelines yarnpkg
我有一个带有yarn build命令的位桶管道。问题是输出总是错过最后几行:
+ yarn build\nyarn run v1.22.19\n$ react-scripts build\nCreating an optimized production build...\nCompiled successfully.\nFile sizes after gzip:\nRun Code Online (Sandbox Code Playgroud)\n之后应该会有更多行File sizes after gzip:。
我的bitbucket-pipelines.yml:
+ yarn build\nyarn run v1.22.19\n$ react-scripts build\nCreating an optimized production build...\nCompiled successfully.\nFile sizes after gzip:\nRun Code Online (Sandbox Code Playgroud)\n最大的问题是何时yarn build出错。因为我没有看到最后几行,所以我无法说出它失败的原因。发生这种情况时,我必须yarn build在本地计算机上手动运行才能查看完整日志,这不是最佳解决方案。
当我在我的机器上运行相同的yarn build命令时,我得到完整的日志:
\xe2\x9d\xaf yarn build\nyarn run v1.22.19\n$ react-scripts build\nCreating an optimized production build...\nCompiled successfully.\n\nFile sizes after gzip:\n\n 383.56 kB build/static/js/main.a23388a2.js\n 13.39 kB build/static/css/main.06459f93.css\n 1.79 kB build/static/js/787.44808443.chunk.js\n\nThe project was built assuming it is hosted at /.\nYou can control this with the homepage field in your package.json.\n\nThe build folder is ready to be deployed.\nYou may serve it with a static server:\n\n yarn global add serve\n serve -s build\n\nFind out more about deployment here:\n\n https://cra.link/deployment\n\nDone in 19.59s.\nRun Code Online (Sandbox Code Playgroud)\n我发现许多其他命令的输出都被截断,而不仅仅是yarn build. 我创建了一个简单的程序,通过和“Hello, World!”echo "Hello, World!"在服务器上远程执行。atlassian/ssh-run消息被截断。
解决办法:刷新页面。
太长;博士;这是 BitBucket 接口上长达三年的错误(并且还在持续): https: //jira.atlassian.com/browse/BCLOUD-18574
他们的界面似乎无法正常工作,无法实时获取结果,但日志已正确保存,并且可以通过重新加载页面来检索。
| 归档时间: |
|
| 查看次数: |
1668 次 |
| 最近记录: |