2015-12-02 18 views
4

我們使用Gitlab-ci的官方Windows runner。我們想要上傳文物。用Windows Runner上傳文物

我們在我們的yaml文件中使用'artifact'關鍵字來定義需要上傳的artefact。當我們承諾這是消息我們得到:

gitlab-ci-multi-runner 0.7.2 (998cf5d) 
WARNING: artifacts is not supported by selected executor and shell 
Using Shell executor... 

因此,這是因爲它使用的是Windows machine?這到底是怎麼回事?

+1

他們就可以明顯的工作(例如運行Windows從cmd.exe /c "dir"的bash命令): https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/merge_requests/52 –

回答

3

目前不支持從Windows Shell cmdpowershell上傳工件。經過一段時間的挖掘源,我發現根據gitlab-ci-multi-runner\shells\bash.gobash確實支持它。

對我來說,工作的解決方案是:

  1. 安裝巴什(已包括在GIT-SCM)
  2. 添加在bash目錄(C:\Program Files (x86)\Git\bin)到您的PATH
  3. 做,如果你鍵入肯定bash啓動bashcmd
  4. 找到你config.toml和修改/添加:

    executor = "shell" 
    shell = "bash" 
    
  5. 重啓你的混帳亞軍服務

  6. 確保您的構建腳本是在bash語法
+0

這是關於如何使用當前版本上傳人工製品的答案。 –

相關問題