SCMLife.com

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 3745|回复: 1

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

[复制链接]
发表于 2015-11-5 09:58:51 | 显示全部楼层 |阅读模式
目的:clearcase中,在想要监控的路径下,如果用户checkin了某文件,触发build
8 ~& E- L8 @* Y2 N5 h
! D0 r2 i: [$ M) i在jenkins中,使用Simple Dynamic ClearCase插件
  v% {2 V5 l1 J* f1 L" O  @/ P7 y3 s! j) r
Load rules设置\VOB\work\CC
6 k) s& P4 ?* D6 e7 a% @' @+ q3 \. {viewname设置test_view
0 S  i/ o# v3 x2 u; ]+ UBranch name to watch设置main
$ }% e) s1 w3 b这三个参数都是按照帮助设置的,但是branch提示There isnt any branch on load rule:\VOB\work\CC
6 E1 ^: F7 _: S8 M也勾选了Poll SCM  a& U" m( H+ i) [1 u. x# m
- Q! h, u! ~; L) d: G9 o

6 U& c, ?- F# h3 p$ A  z但是每次poll的log都说No change(已经手动checkout,checkin了文件夹以及下面的文件)2 W$ X% u& ~/ m) o3 Q  d
所以一直没有触发build
% x: v# w3 A9 m$ N) x# c% ]请大家帮忙,谢谢!
; o' a9 j; o# S& D6 i* tpolling log如下) g7 T+ D" |, L/ 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 changes0 _0 R, V$ _$ t# p7 I
 楼主| 发表于 2015-11-16 14:28:32 | 显示全部楼层
这么多人看过了,没有哪位能给点意见么?
- p4 \) Z) z% Y) t5 V" ?; m& t5 Z7 T  M其中setview也不是windows下的clearcase命令,比较不懂为啥会调出来这个命令。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2018-5-21 10:58 , Processed in 0.047766 second(s), 6 queries , Gzip On, MemCache On.

Powered by SCMLife X3.4 Licensed

© 2001-2017 JoyShare.

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