如何阻止Bitbucket管道建设?

问题描述 投票:0回答:2

有什么方法可以阻止Bitbucket管道建设吗?

这个过程花了超过25分钟?

.yml文件内容是: -

image: node:8.9.4
pipelines:
  default:
    - step:
        caches:
          - node
        script: # Modify the commands below to build your repository.
          - if [ $BITBUCKET_BRANCH == 'master' ]; then
          - npm install -g @angular/cli
          - npm install -g firebase-tools
          - npm install
          - ng build
          - firebase deploy --only hosting --token "$FIREBASE_TOKEN" --public dist
          - fi
angular firebase firebase-hosting bitbucket-pipelines
2个回答
3
投票

那个右边的按钮怎么样:enter image description here


1
投票

您正在每次运行时从npm安装所有库,使用已安装了npm和firebase工具的docker映像,如下所示:https://hub.docker.com/r/devillex/docker-firebase/,这将显着缩短构建时间

© www.soinside.com 2019 - 2024. All rights reserved.