大部分使用的都是:https://github.com/fit2cloud/aliyun-oss-plugin 這個插件。
異常
但是在使用時會出現(xiàn)以下異常: Your host is invalid. Please use Open Storage Service standard host.
原因:

UTOOLS1573181857097.png
只指定了后綴,卻沒有指定具體的地域。
解決方案:
下載下面的 oss 插件,直接去 jenkins 的安裝目標 / plugins 替換 aliyun-oss 這個插件。
鏈接:https://pan.baidu.com/s/1NEe2jj3CP2rEMcxB-6kkYA
提取碼:i5wj
效果
更新后,再打開配置,就可以設置完整的 EndPoint ,而非后綴了。

UTOOLS1573181987150.png
其他:
還是推薦使用另一個上傳的插件 https://github.com/jenkinsci/aliyun-oss-uploader-plugin
可以直接上傳文件夾。