标签: bitbucket-pipelines

无法列出文件系统以检查它们是否可以被监视

我刚刚设置了一个 Bitbucket 管道来在 Docker 容器中构建 Android 应用程序......

但构建后,无法挂载某些未知目录:

> Task :mobile:lintDebug
Wrote HTML report to file:///opt/atlassian/pipelines/agent/build/mobile/build/reports/lint-results-debug.html
BUILD SUCCESSFUL in 2m 51s
41 actionable tasks: 41 executed
Unable to list file systems to check whether they can be watched.
The whole state of the virtual file system has been discarded.
Reason: Could not query file systems: could not open mount file (errno 2: No such file or directory)
Run Code Online (Sandbox Code Playgroud)

这是什么原因/如何消除该错误消息?

android gradle bitbucket-pipelines

5
推荐指数
0
解决办法
5694
查看次数

如何将命令行参数传递给服务容器?

我正在尝试设置一个使用 docker 容器提供的数据库服务的 bitbucket 管道。但是,为了正确启动数据库服务,我需要传递一个参数以供数据库容器的 ENTRYPOINT 接收。我从管道服务文档中看到,可以发送variables到服务的 docker 容器,但我需要设置的选项不能通过环境变量设置,只能通过命令行参数设置。

当我使用本地运行数据库的 docker 映像时docker run,我只需将其添加到命令末尾即可设置该选项docker run,并且它会正确应用于容器的 ENTRYPOINT,所以看起来这应该很简单,我可以不知道将参数放在 bitbucket-pipelines.yml 中的位置。

下面是我的 bitbucket-pipelines.yml。除了我需要一种将命令行参数传递到文件末尾的 victoria-metrics 容器之外,它的一切都很好。

image: node:14.16.1
pipelines:
  default:
    - step:
        caches:
          - node
        script:
          - npm install
          - npm test
        services:
          - mongo
          - victoriaMetrics

definitions:
  services:
    mongo:
      image: mongo:3.6
    victoriaMetrics:
      image: victoriametrics/victoria-metrics:v1.75.1
Run Code Online (Sandbox Code Playgroud)

bitbucket-pipelines

5
推荐指数
1
解决办法
1803
查看次数

GraphQL 运行 eas commit 时出现意外的服务器错误

我正在尝试创建对 google play 商店的提交,但是在运行 eas commit 时,bitbucket 管道返回了一个相当不明确的 graphql 错误。

\n

这是我从 bitbucket 管道收到的错误。

\n
+ eas submit -p android --type=aab --url=$(expo url:apk) --key=./google-services.json\n- Linking to project @jonoirwin/myapp-mobile\n\xe2\x9c\x94 Linked to project @jonoirwin/myapp-mobile (\xe2\x80\x8bhttps://expo.dev/accounts/jonoirwin/projects/myapp-mobile\xe2\x80\x8b)\nProject ID:                     a22b6894-4b43-41c9-b1f8-88ab5d61bbc3\nAndroid package:                za.co.path.myapp\nRelease track:                  internal\nChanges not sent for a review:  false\nRelease status:                 completed\nArchive type:                   AAB\nGoogle Service Key:             ./google-services.json\nDownload URL:                   https://exp-shell-app-assets.s3.us-west-1.amazonaws.com/android/%40jonoirwin/myapp-mobile-af22e02ecb2540f2878baf07421b79ca-signed.aab\n- Scheduling submission\n\xe2\x9c\x96 Failed to schedule submission\n    CombinedError: [GraphQL] Unexpected server error (Expo error ID: \n    4866d6b013f5c0b2182408467d606063).\n
Run Code Online (Sandbox Code Playgroud)\n

android react-native bitbucket-pipelines expo

5
推荐指数
1
解决办法
3958
查看次数

当在 bitbucket 管道中提出拉取请求时,如何仅对已更改的文件运行 Eslint?

我们正在为 React 项目构建一个 bitbucket 管道。我们有预提交挂钩设置,仅对暂存文件进行 linting。如何在 bitbucket 管道中实现相同的目标,当提出拉取请求时,它会获取 diff 文件,并仅检查这些文件的 linting。

git bitbucket reactjs bitbucket-pipelines

5
推荐指数
1
解决办法
1770
查看次数

在工作日运行 bitbucket 计划管道的最佳方式

Bitbucket 计划管道 UI 没有让我们输入 cron 表达式的选项,我们只能每小时、每天或每周运行管道。有一个选项可以通过有效负载中的 cron 表达式通过 API 调用创建计划,但不幸的是它不接受复杂的 cron 表达式。

实现管道仅在工作日运行的最佳方法是什么?

寻找比这些更好的解决方案。

  1. 周一至周五有多个每日管道。
  2. 建立每日管道并检查当天的内部运行逻辑。

有更好的选择吗?

bitbucket bitbucket-api bitbucket-pipelines bitbucket-cloud

5
推荐指数
1
解决办法
374
查看次数

如何通过Bitbucket Pipeline部署firebase?

我正在使用angular-cli项目,我使用Heroku进行CD集成.存储库位于Bitbucket上.现在我将通过Bithubcket管道使用firebase部署服务,所以我尝试如下.

的package.json

{
  "name": "mail-activator",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "postinstall": "ng build --prod",
    "deploy": "firebase deploy --token $FIREBASE_TOKEN",
    "start": "node server.js"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^4.1.3",
    "@angular/cli": "1.0.3",
    "@angular/common": "^4.1.3",
    "@angular/compiler": "^4.1.3",
    "@angular/compiler-cli": "^4.1.3",
    "@angular/core": "^4.1.3",
    "@angular/forms": "^4.1.3",
    "@angular/http": "^4.1.3",
    "@angular/material": "^2.0.0-beta.5",
    "@angular/platform-browser": "^4.1.3",
    "@angular/platform-browser-dynamic": "^4.1.3",
    "@angular/router": "^4.1.3",
    "angular2-prettyjson": "^2.0.5",
    "angularfire2": "^4.0.0-rc.0",
    "bootstrap": "^4.0.0-alpha.6",
    "core-js": "^2.4.1",
    "express": "^4.15.3",
    "firebase": "^4.0.0",
    "firebase-tools": "^3.9.0", …
Run Code Online (Sandbox Code Playgroud)

webdeploy firebase firebase-tools angular-cli bitbucket-pipelines

4
推荐指数
1
解决办法
2737
查看次数

如何在Bitbucket管道中建立子文件夹

我正在努力在Bitbucket Pipelines中配置构建。

这是一个C#解决方案,代码位于子文件夹中,而不是存储库的根文件夹中。这就是为什么在构建它时会出现错误:

+点网还原

MSBUILD:错误MSB1003:指定项目或解决方案文件。当前工作目录不包含项目或解决方案文件。

我已经阅读了文档,但是似乎没有选择尝试指定子文件夹。那你该如何配置呢?

这是我的.yml文件:

image: microsoft/dotnet:latest

pipelines:
  default:
    - step:
        caches:
          - dotnetcore
        script: # Modify the commands below to build your repository.
          - export PROJECT_NAME=MyProjectNameHere
          - export TEST_NAME=MyProjectNameHere
          - dotnet restore
          - dotnet build $PROJECT_NAME
          - dotnet test $TEST_NAME
Run Code Online (Sandbox Code Playgroud)

msbuild bitbucket-pipelines

4
推荐指数
1
解决办法
2085
查看次数

Bitbucket管道中的触发步骤

我在Bitbucket中有一个CI管道,该管道正在构建,测试和部署应用程序。事实是,在部署之后,我要运行硒测试。硒测试位于Bitbucket的另一个存储库中,它们具有自己的管道。

Bitbucket管道中是否有触发步骤,以在上一个管道完成时触发管道?

我不想对测试存储库进行虚假推送以触发这些测试。

bitbucket bitbucket-pipelines

4
推荐指数
1
解决办法
1484
查看次数

(反应性)Mongo测试失败:无法识别的字段'快照'

我在BitBucket管道中运行的测试"突然"开始失败并出现此错误:无法识别的字段'snapshot'(代码= 9).

在本地测试都运行正常.本地和BitBucket我都使用Mongo 3.7 docker容器.活跃的Mongo版本是0.13.0

任何人都知道为什么会这样,以及如何解决这个问题?

mongodb reactivemongo bitbucket-pipelines

4
推荐指数
1
解决办法
2834
查看次数

管道:支持的最低Gradle版本为4.10.1。当前版本是4.4

我已经更新了顶级build.gradle文件:从

classpath 'com.android.tools.build:gradle:3.1.4'
Run Code Online (Sandbox Code Playgroud)

classpath 'com.android.tools.build:gradle:3.3.0'
Run Code Online (Sandbox Code Playgroud)

现在无法在Bitbucket-Pipelines上构建项目:错误是:

FAILURE: Build failed with an exception.
* Where:
Build file '/opt/atlassian/pipelines/agent/build/app/build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 4.10.1. Current version is 4.4. If using the gradle wrapper, try editing the distributionUrl in /opt/atlassian/pipelines/agent/build/gradle/wrapper/gradle-wrapper.properties to gradle-4.10.1-all.zip
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get …
Run Code Online (Sandbox Code Playgroud)

android bitbucket gradle bitbucket-pipelines

4
推荐指数
1
解决办法
2858
查看次数