The first thing I'll suggest is that you exhibit a bit of patience; as you've 
been told before on this list, most of the people here are volunteering their 
time, and have plenty of other things to do, so they aren't going to drop 
everything they are doing to answer your questions.

Your problem appears to be this one: 
https://issues.jenkins-ci.org/browse/JENKINS-4836

That is marked as 'fixed', but it's not clear whether there has been a new 
release of the sloccount plugin that includes the fix or not. There are 
multiple issues in JIRA about running sloccount under Windows, so you should 
likely review all of them see if any of them apply to your situation.

----- Original Message -----
From: jenkinsci-users@googlegroups.com
To: jenkinsci-users@googlegroups.com
At: Nov 15 2013 05:04:40

please suggest

regards


On Fri, Nov 15, 2013 at 6:17 AM, Irfan Sayed <irfu.sa...@gmail.com> wrote:

thanks.

i configured job for sloccount plugin.
my environment is windows and i configured Cygwin to run the sloccount 
so there are two commands which i run to debug ...

1: 
/cygdrive/c/Users/bvcontrolbuild/Downloads/sloccount-2.26/new/sloccount-2.26/sloccount
 --duplicates --wide --details 
/cygdrive/c/workspace/ua_final/DataIntegration/di-core/src/main/ > 
/cygdrive/c/workspace/ua_final/DataIntegration/sloccount.sc

the output of above command is stored in file sloccount.sc file . PFA

2: 
/cygdrive/c/Users/bvcontrolbuild/Downloads/sloccount-2.26/new/sloccount-2.26/sloccount
 /cygdrive/c/workspace/ua_final/DataIntegration/di-core/src/main/ > 
/cygdrive/c/workspace/ua_final/DataIntegration/sloccount.sc

the output of above command is stored in file sloccount1.sc. PFA

so first thing is , i don't know which command i should go ahead with ?
second, in Jenkins job configuration , if i put file sloccount1.sc file , then 
it does not throw any exception , but, at the end , there is no any report also 
and no any trend graph also 

further, if i put sloccount.sc file , then jenkins throws follwoing exception 
at the end of build 


Started by user Irfan Sayed [EnvInject] - Loading node environment variables. 
Building remotely on 10.211.162.150 in workspace C:\workspace\ua_final 
[ua_final] $ cmd /c call 
C:\Users\BVCONT~1\AppData\Local\Temp\2\hudson4372201469243593858.bat  
C:\workspace\ua_final>C:\cygwin64\Cygwin-jenkins.bat bash: cannot set terminal 
process group (-1): Inappropriate ioctl for device bash: no job control in this 
shell ERROR: Publisher hudson.plugins.sloccount.SloccountPublisher aborted due 
to exception java.lang.StringIndexOutOfBoundsException: String index out of 
range: -1         at java.lang.String.substring(String.java:1911)         at 
hudson.plugins.sloccount.model.SloccountReport.extractFolder(SloccountReport.java:71)
         at 
hudson.plugins.sloccount.model.SloccountReport.add(SloccountReport.java:49)     
    at 
hudson.plugins.sloccount.model.SloccountParser.parseLine(SloccountParser.java:99)
         at 
hudson.plugins.sloccount.model.SloccountParser.parse(SloccountParser.java:66)   
      at 
hudson.plugins.sloccount.model.SloccountParser.parse(SloccountParser.java:57)   
      at 
hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:47)  
       at 
hudson.plugins.sloccount.model.SloccountParser.invoke(SloccountParser.java:17)  
       at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2420)         
at hudson.remoting.UserRequest.perform(UserRequest.java:118)         at 
hudson.remoting.UserRequest.perform(UserRequest.java:48)         at 
hudson.remoting.Request$2.run(Request.java:326)         at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)  
       at java.util.concurrent.FutureTask.run(FutureTask.java:166)         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
        at hudson.remoting.Engine$1$1.run(Engine.java:61)         at 
java.lang.Thread.run(Thread.java:724) Notifying upstream projects of job 
completion Finished: FAILURE 
please suggest me where i m going wrong 

regards


On Fri, Nov 15, 2013 at 12:45 AM, Kevin Fleming (BLOOMBERG/ 731 LEXIN) 
<kpflem...@bloomberg.net> wrote:
  
Please don't crosspost messages to multiple mailing lists.

Yes, some of us use the sloccount plugin. It's pretty much impossible to help 
you in any useful way if you don't tell us what problems you are experiencing, 
though.


----- Original Message -----
From: jenkinsci-users@googlegroups.com
To: jenkinsci-...@googlegroups.com, jenkinsci-users@googlegroups.com


At: Nov 14 2013 14:05:28

hi,

have anybody used the sloccount plugin.??
i have couple of doubts with which i am struggling 

please let me know 

regards
irfan

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
  
 -- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to