SCMLife.com

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 4581|回复: 1

[求助] jenkins是否支持clearcase的checkin触发?

[复制链接]
发表于 2015-11-5 09:58:51 | 显示全部楼层 |阅读模式
目的:clearcase中,在想要监控的路径下,如果用户checkin了某文件,触发build
# x* B$ Y4 S2 x3 R' |0 K: M9 k4 n; D0 l. p/ O. E
在jenkins中,使用Simple Dynamic ClearCase插件, u5 x; ?& R4 R) M* s

/ x' V9 p, n  L3 D/ uLoad rules设置\VOB\work\CC
7 C" L* H9 E% o( e, {3 ^viewname设置test_view
3 c. }2 d' d- s( x; J( D7 qBranch name to watch设置main
% h; \% i6 p# q7 _: _这三个参数都是按照帮助设置的,但是branch提示There isnt any branch on load rule:\VOB\work\CC
  _, t! e1 z# G( [0 O也勾选了Poll SCM1 ~. b# f2 d5 j! f1 U) {- F- _

$ b3 N9 [+ C/ W
, C+ q) j" l' }9 ]8 n- S& S5 h但是每次poll的log都说No change(已经手动checkout,checkin了文件夹以及下面的文件)
  F3 I2 K: ^3 g$ B所以一直没有触发build
$ [7 O5 \/ g! M! B$ I& ~请大家帮忙,谢谢!/ s: C. p, a2 p- v( V9 n. X
polling log如下0 @. h% t+ G& d2 G% J& W- `: O
Simple Dynamic ClearCase Polling LogStarted on 2015-11-4 14:33:00Polling SCM changes on mastercompareRemoteRevisionWith: Last build: #7compareRemoteRevisionWith: Baseline LR-mapping from RevisionState is: LoadRuleDateMap is empty[Dynamic_view] $ cleartool setview -exec 'cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco \VOB\work\CC' test_viewERROR: ClearTool: Exit code wasn't ok, code: 1. Tried to execute: cleartool setview -exec "cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco \VOB\work\CC" test_viewFATAL: ClearTool: Exit code wasn't ok, code: 1. Tried to execute: cleartool setview -exec "cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco \VOB\work\CC" test_viewjava.io.IOException: ClearTool: Exit code wasn't ok, code: 1. Tried to execute: cleartool setview -exec "cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco \VOB\work\CC" test_view        at jenkins.plugins.simpleclearcase.ClearTool.execute(ClearTool.java:392)        at jenkins.plugins.simpleclearcase.ClearTool.executeWithView(ClearTool.java:351)        at jenkins.plugins.simpleclearcase.ClearTool.rawLshistory(ClearTool.java:294)        at jenkins.plugins.simpleclearcase.ClearTool.lshistory(ClearTool.java:204)        at jenkins.plugins.simpleclearcase.ClearTool.getLatestCommitDates(ClearTool.java:155)        at jenkins.plugins.simpleclearcase.SimpleClearCaseSCM.compareRemoteRevisionWith(SimpleClearCaseSCM.java:114)        at hudson.scm.SCM.poll(SCM.java:398)        at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1474)        at hudson.model.AbstractProject._poll(AbstractProject.java:1445)        at hudson.model.AbstractProject.poll(AbstractProject.java:1356)        at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:510)        at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:539)        at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)        at java.util.concurrent.FutureTask.run(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source)Done. Took 87 msNo changes
% M) ]5 ^9 @$ p; Y
 楼主| 发表于 2015-11-16 14:28:32 | 显示全部楼层
这么多人看过了,没有哪位能给点意见么?
( I+ i2 ^4 E2 {: g0 z- v" o! V其中setview也不是windows下的clearcase命令,比较不懂为啥会调出来这个命令。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

SCMLife推荐上一条 /4 下一条

QQ|小黑屋|手机版|无图版|SCMLife.com ( 京ICP备06056490号-1 )

GMT+8, 2019-1-23 01:49 , Processed in 0.053611 second(s), 7 queries , Gzip On, MemCache On.

Powered by SCMLife X3.4 Licensed

© 2001-2017 JoyShare.

快速回复 返回顶部 返回列表