Bitbucket管道,步骤之间的工件

时间:2018-10-31 20:11:36

标签: bitbucket bitbucket-pipelines

我正在尝试在bitbucket中使用以下管道来部署到gcloud。管道的其余部分丢失了,但我知道这是可行的。问题是,当我执行第二步时,已编译的CSS文件不再存在。它似乎与bitbucket建议使用工件有关。我尝试了以下;

 artifacts:
   - **
   -public/assets/css/generated/style.css
   -public/assets/css/generated/*.css
   -public/assets/css/generated/*
   -public/*
   -public/**

pipelines:
  branches:
    pipeline:
     - step:
         image: node:4.6.0
         caches:
           - node
         script:
             - cd web-application
             - npm install
             - npm install -g gulp
             - gulp
             - ls public/assets/css/generated
             # - mv public/assets/css/generated/* ~/./
             - cd ..
         artifacts:
             - public/assets/css/generated/style.css
             - public/**

     - step:
        image: google/cloud-sdk:latest
        script:
          - cd web-application
          - ls public/assets/css/generated

Artifacts showing in step 1

0 个答案:

没有答案