开发者论坛

标题: ohpm publish xxx.har 发布第三方库,无法自动化发布 [打印本页]

作者: yeyao1    时间: 2024-8-2 10:29
标题: ohpm publish xxx.har 发布第三方库,无法自动化发布
[md]**【问题描述】**
发布第三方库需求部署jenkins上
ohpm publish xxx.har 需要输入密码,如何自动输入密码或者免密发布自动上传脚本:
![](https://forums-obs.openharmony.c ... 9cqq9aqamlaaaeq.png)

output, error = subprocess.run(["ohpm", "publish", har\_file], input="abcd\\n", text=True)

[/md]




欢迎光临 开发者论坛 (https://oh-test.qingcheng100.cn/) Powered by Discuz! X3.5