bitbucket - 工件未在 bitbucket 管道中发布
问题描述
我在 BitBucket Pipeline 中进行了非常简单的 java 构建。唯一的转折是它位于存储库子目录中。
我的管道:
pipelines:
default:
- step:
caches:
- gradle
script: # Modify the commands below to build your repository.
# You must commit the Gradle wrapper to your repository
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
- bash "./foo bar/gradlew" -p "./foo bar" distTar
- ls ./foo\ bar/build -R
- echo 'THE END'
artifacts:
- ./foo bar/build/distributions/xxx.tar
我的 ls 确认 xxx.tar 在预期的位置
……
./foo bar/build/distributions:brigitte.tar
解决方案
找到了!它应该是 - foo bar/build/distributions/brigitte.tar
工件路径不是真正的路径,所以开头的点冒号使我的路径无效。遗憾的是它没有作为警告提出!
推荐阅读
- assembly - 如何解决 TASM 中的“假设数据段是 32 位”
- firebase - 未找到 Travis 部署 Firebase 托管文件
- javascript - Style.backgroundColor 或 style.background 没有执行它的功能
- c++ - godot的NetSocket是如何创建实例的?
- python - python url请求响应解码
- mongodb - 本地数据库 + 服务器数据库 - React Native
- r - 错误:更改堆积条形图 ggplot2 中的颜色
- javascript - 如何通过更灵活地渲染其他转储组件来使 React 中的智能组件更加智能
- angular - 如何在返回函数之前等到所有订阅都运行?
- c# - 如何将 Swagger 与来自 Web API 操作方法的动态参数一起使用?