2017-04-20 74 views
0

我在gitlab.com上使用共享的跑步者。指南here顯示作業構件的一部分。但是,當我跑我的工作,看看我的工作頁面,我只看到這一點:使用GitLab CI找不到我的工件

screenshot of GitLab CI

有作業文物無節。

我該怎麼辦?

這裏是我的.gitlab-ci.yml

image: node:7.9 

stages: 
    - lint 
    - test 

cache: 
    paths: 
    - node_modules/ 

before_script: 
    - npm install 
    - npm install -g grunt-cli 

lint: 
    stage: lint 
    script: 
    - grunt lint 

test: 
    stage: test 
    script: 
    - grunt 
    - grunt test 
    - grunt coveralls 
    artifacts: 
    paths: 
     - dist/project*.min.js* 
+0

這很奇怪。你確定有文件符合文物路徑嗎?你能向我們展示有關作業的控制檯輸出嗎? – Jawad

回答

0

可能有幾個原因不會發生。該文件很可能永遠不會生成,因此不可用作工件。你可以在輸出中找到這個原因。

神器上傳總是記錄在輸出爲好,比如這是我的一個構建一些調試:

Uploading artifacts... 
storage/logs/lumen.log: found 1 matching files  
Uploading artifacts to coordinator... ok   id=1444 responseStatus=201 Created token=MHYPxxWu 

如果你沒有看到這樣的事情,最有可能的原因是也記錄了。