首页 > 解决方案 > 工件未在 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

.... ,但工件页面是空的。 空工件

标签: bitbucketbitbucket-pipelines

解决方案


找到了!它应该是 - foo bar/build/distributions/brigitte.tar

工件路径不是真正的路径,所以开头的点冒号使我的路径无效。遗憾的是它没有作为警告提出!


推荐阅读