AZDO 发布 Rest-API 的管道门成功标准

时间:2021-03-24 10:51:47

标签: javascript azure-pipelines-release-pipeline azure-devops-rest-api

我正在尝试通过调用 ValueError Traceback (most recent call last) <ipython-input-33-9e046a813015> in <module>() 11 12 xx = np.linspace(0, 26, 100) ---> 13 yy = regressor.predict(xx.reshape(xx.shape[0], 1)) 14 plt.plot(xx, yy) 15 ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1) 来使用 Release Pipeline Gate 功能。我成功获得响应,但是,我对成功标准有疑问。

我从 API 调用中得到的结果:

REST API

现在我遇到的问题是设置标准。如果只是说 {"projectStatus":{"status":"NONE","conditions":[],"periods":[]}} 会很容易,因为 {"status":"NONE","conditions":[],"periods":[]} 会起作用,但是在上述情况下我该怎么办?

我已经尝试了所有的方法,但没有任何效果。我遵循了很多示例,但找不到这样的示例。

你能帮忙吗?

1 个答案:

答案 0 :(得分:0)

经过多次测试,我设法找到了解决方案:

eq(jsonpath('$.projectStatus.status')[0],'NONE')

完美运行...

相关问题