SCMLife.com

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 4280|回复: 1

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

[复制链接]
发表于 2015-11-5 09:58:51 | 显示全部楼层 |阅读模式
目的:clearcase中,在想要监控的路径下,如果用户checkin了某文件,触发build
7 R! Q, u9 F3 G. Z  H0 Z; Q6 I6 c4 G# G8 z1 X: P8 K
在jenkins中,使用Simple Dynamic ClearCase插件- h* Z! e9 U& P) z

: Q) Z* H3 @- a2 ^Load rules设置\VOB\work\CC  D) N2 [4 w/ S& k- v- Q' E3 ^  j
viewname设置test_view
0 q3 U1 c: X, I$ _1 MBranch name to watch设置main
7 P# L- X# }2 p这三个参数都是按照帮助设置的,但是branch提示There isnt any branch on load rule:\VOB\work\CC6 V, @0 r& d$ c+ G9 ^" T* [9 D
也勾选了Poll SCM
5 C+ z0 A6 [7 k- Y1 \* I; o; Q, J6 v. q) }

8 N0 q, W7 }, ]9 ~. t但是每次poll的log都说No change(已经手动checkout,checkin了文件夹以及下面的文件)
# ^% Y0 F9 i0 o6 p  p所以一直没有触发build$ z: s0 x- v) r3 h3 m& L1 g4 Q
请大家帮忙,谢谢!
. K, s6 }/ M. U* Ipolling log如下: ?/ f& N" W4 Q$ W7 x, G
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 changes1 V( K9 m8 L# ?' t+ S
 楼主| 发表于 2015-11-16 14:28:32 | 显示全部楼层
这么多人看过了,没有哪位能给点意见么?
! H' M" E" J- y4 E" y1 j- G, \1 w  G其中setview也不是windows下的clearcase命令,比较不懂为啥会调出来这个命令。
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

SCMLife推荐上一条 /4 下一条

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

GMT+8, 2018-11-13 09:40 , Processed in 0.056908 second(s), 6 queries , Gzip On, MemCache On.

Powered by SCMLife X3.4 Licensed

© 2001-2017 JoyShare.

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