昨天,我的pullrequest作业失败,输出如下:
11:07:41 > git rev-parse origin/${sha1}^{commit}
11:07:41 > git rev-parse ${sha1}^{commit}
11:07:41 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
我进行了调查,发现在属性${sha1}中什么都没有。当我粘贴一个绝对路径到pr/341/merge这样的请求构建
我有很多jenkins的工作,比如
execute myProgram.exe to convert input.txt to output.txt
if (the conversion is successful) {
trigger another jenkins job
} else {
send a e-mail to notify someone that the build fails
}
所有这些都是Freestyel project
我想编写单元测试代码来测试我的jenkins作业的成功和失败案例。
如果构建成功,测试代码应该检查output.txt的内容是否