How to reset the build number

2014-04-16 Thread Praveen Jaikumar
We restored the Jenkins to previous time .  Even thought the jobs in the 
backend, Its not displaying in the front end as previous build is greated 
than the current build.Can any one tell me how to reset the build in  Jenkins 
1.555.

-- 
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/d/optout.


Re: Create Promoted Build config via CLI/API

2014-04-16 Thread jv

We achieved full automation in our particular case:
a) created a standard template job with pre-defined promotions;
b) a script which is using remote api (CLI, sshd) copy-job to make a new 
job; get-job, update-job to manipulate the new job [1]
c) warp this script to yet another parameterized job, this can then be 
comfortably used via UI or remote api.
d) combined with Git post-receive hook, we can automatically create a 
new job once a new branch is pused to the git repo.
This approach is good enough for us, and has been working for years. 
Because all our jobs have the same configuration except some key 
parameters.

copy-job does the trick, it can copy all promotion configurations.

[1] https://github.com/hzh/create-job-cli

Am 15.04.2014 23:45, schrieb Richard Bywater:

Ah thanks - for some reason never thought to check the Jira issues - doh!

Unfortunately, given the dates on those issues, looks like its not a 
very high priority to get the feature added which makes me wonder how 
people are using it on big installs. I can't imagine that people have 
auto job creation going on but having to go into add promotion types 
job by job?


Richard.


On Wed, Apr 16, 2014 at 1:11 AM, jv 
mailing.list.collect...@googlemail.com 
mailto:mailing.list.collect...@googlemail.com wrote:


Seems related to:

https://issues.jenkins-ci.org/browse/JENKINS-8963
https://issues.jenkins-ci.org/browse/JENKINS-11972

Am 15.04.2014 07:06, schrieb Richard Bywater:

Hi

I've just discovered the wonder that is the promoted build plugin
(don't why I've never really come across it before!)

However one issue I'm having with introducing it's use is that it
appears that the only way to configure a promotion is via the Job
Configuration screen.

Given we use Jenkins Job Builder to create jobs, is there any CLI
or API type way of creating promotions a job?

Thanks
Richard

-- 
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
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
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
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
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/d/optout.


Re: Outlook365 email notification is failing

2014-04-16 Thread Slide
Jenkins won't use the tomcat mail configuration. You have the set it up in
Jenkins.
On Apr 15, 2014 10:19 PM, Munaf Kotawdekar kmu...@gmail.com wrote:

 Hi,

 I have not configured anything in Jenkins config file. Please find the
 config.xml below.
 I am using tomcat's server.xml for email configuration which I sent you
 earlier. Please check mail/session element in that.

 ?xml version='1.0' encoding='UTF-8'?
 hudson
   disabledAdministrativeMonitors/
   version1.539/version
   numExecutors2/numExecutors
   modeNORMAL/mode
   useSecuritytrue/useSecurity
   authorizationStrategy
 class=hudson.security.ProjectMatrixAuthorizationStrategy

 permissioncom.cloudbees.plugins.credentials.CredentialsProvider.Create:admin/permission

 permissioncom.cloudbees.plugins.credentials.CredentialsProvider.Delete:admin/permission

 permissioncom.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:admin/permission

 permissioncom.cloudbees.plugins.credentials.CredentialsProvider.Update:admin/permission

 permissioncom.cloudbees.plugins.credentials.CredentialsProvider.View:admin/permission
 permissionhudson.model.Computer.Build:admin/permission
 permissionhudson.model.Computer.Configure:admin/permission
 permissionhudson.model.Computer.Connect:admin/permission
 permissionhudson.model.Computer.Create:admin/permission
 permissionhudson.model.Computer.Delete:admin/permission
 permissionhudson.model.Computer.Disconnect:admin/permission
 permissionhudson.model.Hudson.Administer:admin/permission

 permissionhudson.model.Hudson.ConfigureUpdateCenter:admin/permission
 permissionhudson.model.Hudson.Read:admin/permission
 permissionhudson.model.Hudson.Read:munaf.kotawdekar/permission
 permissionhudson.model.Hudson.Read:parvez.hajiani/permission
 permissionhudson.model.Hudson.RunScripts:admin/permission
 permissionhudson.model.Hudson.UploadPlugins:admin/permission
 permissionhudson.model.Item.Build:admin/permission
 permissionhudson.model.Item.Cancel:admin/permission
 permissionhudson.model.Item.Configure:admin/permission
 permissionhudson.model.Item.Create:admin/permission
 permissionhudson.model.Item.Delete:admin/permission
 permissionhudson.model.Item.Discover:admin/permission
 permissionhudson.model.Item.Read:admin/permission
 permissionhudson.model.Item.Workspace:admin/permission
 permissionhudson.model.Run.Delete:admin/permission
 permissionhudson.model.Run.Update:admin/permission
 permissionhudson.model.View.Configure:admin/permission
 permissionhudson.model.View.Create:admin/permission
 permissionhudson.model.View.Delete:admin/permission
 permissionhudson.model.View.Read:admin/permission
 permissionhudson.scm.SCM.Tag:admin/permission
   /authorizationStrategy
   securityRealm class=de.theit.jenkins.crowd.CrowdSecurityRealm
 plugin=crowd2@1.6
 urlhttp://spg.bsil.com:8095/crowd//url
 applicationNamejenkins/applicationName
 passwordjenkins/password
 group/group
 nestedGroupsfalse/nestedGroups
 useSSOfalse/useSSO
 sessionValidationInterval2/sessionValidationInterval
   /securityRealm
   projectNamingStrategy
 class=jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy/
   workspaceDir${ITEM_ROOTDIR}/workspace/workspaceDir
   buildsDir${ITEM_ROOTDIR}/builds/buildsDir
   markupFormatter class=hudson.markup.RawHtmlMarkupFormatter
 disableSyntaxHighlightingfalse/disableSyntaxHighlighting
   /markupFormatter
   jdks/
   viewsTabBar class=hudson.views.DefaultViewsTabBar/
   myViewsTabBar class=hudson.views.DefaultMyViewsTabBar/
   clouds/
   slaves/
   quietPeriod5/quietPeriod
   scmCheckoutRetryCount0/scmCheckoutRetryCount
   views
 hudson.model.AllView
   owner class=hudson reference=../../../
   nameAll/name
   filterExecutorsfalse/filterExecutors
   filterQueuefalse/filterQueue
   properties class=hudson.model.View$PropertyList/
 /hudson.model.AllView
   /views
   primaryViewAll/primaryView
   slaveAgentPort9002/slaveAgentPort
   label/label
   nodeProperties/
   globalNodeProperties/
   noUsageStatisticstrue/noUsageStatistics
 /hudson



 On Tue, Apr 15, 2014 at 6:00 PM, Slide slide.o@gmail.com wrote:

 I meant your global config that you are using for email in Jenkins.


 On Mon, Apr 14, 2014 at 9:55 PM, Munaf Kotawdekar kmu...@gmail.comwrote:

 Hi,

 Please find below configuration file:

  GlobalNamingResources
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users
 --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved

 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /

 Resource name=mail/Session
 auth=Container
 type=javax.mail.Session
 mail.smtp.host=pod51021.outlook.com
 

Jobs failed due to a bug in the code

2014-04-16 Thread Gaurav Gupta
I am getting following console output and job is failing. Anyone have any 
idea why this is failing. Jenkins version is 1.558

ERROR: Processing failed due to a bug in the code. Please report this to 
jenkinsci-users@googlegroups.com*12:30:00* java.lang.NullPointerException 
http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
 at java.util.StringTokenizer.init(StringTokenizer.java:199) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
 at java.util.StringTokenizer.init(StringTokenizer.java:236) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
 at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
  at hudson.tasks.MailSender.getMail(MailSender.java:166) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
at hudson.tasks.MailSender.execute(MailSender.java:100) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method*12:30:00*
  at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method*12:30:00*
  at 
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:826)
 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method*12:30:00*
   at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method*12:30:00*
 at hudson.model.Run.execute(Run.java:1689) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method*12:30:00*
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method*12:30:00*
 at hudson.model.ResourceController.execute(ResourceController.java:88) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method*12:30:00*
 at hudson.model.Executor.run(Executor.java:231) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method*12:30:00*
 project=hudson.maven.MavenModuleSet@133df096[sw-app-template-build]*12:30:00* 
project.getModules()=[hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]]*12:30:00*
 
project.getRootModule()=hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]*12:30:00*
 FATAL: null*12:30:00* java.lang.NullPointerException 
http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
 at java.util.StringTokenizer.init(StringTokenizer.java:199) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
 at java.util.StringTokenizer.init(StringTokenizer.java:236) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
 at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
  at hudson.tasks.MailSender.getMail(MailSender.java:166) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
at hudson.tasks.MailSender.execute(MailSender.java:100) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method*12:30:00*
  at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method*12:30:00*
  at 

Re: Jobs failed due to a bug in the code

2014-04-16 Thread Slide
What version of the Mailer plugin do you have?


On Wed, Apr 16, 2014 at 5:59 AM, Gaurav Gupta gaurav.gu...@joshlabs.inwrote:

 I am getting following console output and job is failing. Anyone have any
 idea why this is failing. Jenkins version is 1.558

 ERROR: Processing failed due to a bug in the code. Please report this to 
 jenkinsci-users@googlegroups.com*12:30:00* java.lang.NullPointerException 
 http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
at java.util.StringTokenizer.init(StringTokenizer.java:199) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:236) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
 at 
 hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
   at hudson.tasks.MailSender.getMail(MailSender.java:166) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
 at hudson.tasks.MailSender.execute(MailSender.java:100) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
 at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method*12:30:00*
   at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method*12:30:00*
   at 
 hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:826)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method*12:30:00*
at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method*12:30:00*
  at hudson.model.Run.execute(Run.java:1689) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method*12:30:00*
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method*12:30:00*
  at hudson.model.ResourceController.execute(ResourceController.java:88) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method*12:30:00*
  at hudson.model.Executor.run(Executor.java:231) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method*12:30:00*
  
 project=hudson.maven.MavenModuleSet@133df096[sw-app-template-build]*12:30:00* 
 project.getModules()=[hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]]*12:30:00*
  
 project.getRootModule()=hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]*12:30:00*
  FATAL: null*12:30:00* java.lang.NullPointerException 
 http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:199) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:236) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
 at 
 hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
   at hudson.tasks.MailSender.getMail(MailSender.java:166) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
 at hudson.tasks.MailSender.execute(MailSender.java:100) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
 at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method*12:30:00*
   at 

RE: Perforce Client View Type - View Map with multiple lines...

2014-04-16 Thread Ginga, Dick
Well you certainly can map multiple lines. We do it all the time. Admittedly 
most are one line and almost all simply do not use the second mapping.

Is your example accurate for what you want to do? Isn’t your second line negate 
your first line? using the – is correct to eliminate folder structures.

//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir/dir_level1...
-//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir...
//DepotName/dir_level1/... //WorkspaceName/Workspace_dir...


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mark Wilhelm
Sent: Tuesday, April 15, 2014 6:29 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Perforce Client View Type - View Map with multiple lines...

Thanks for the reply.  I don't think that's it though.  I have a number of 
builds, and they don't have that ending slash.  It won't run with my extra 
lines in there.  I took out the subsequent two lines, and it runs. But that's 
not what I need.

When I've been looking at examples, most (all but one) only have one line in 
the view map. But I have to believe that multiples are allowed - it would seem 
to be limiting without that.  Having said that, how do I do it?  How do I also 
negate inclusion?



On Tuesday, April 15, 2014 1:39:57 PM UTC-5, rginga wrote:
Try putting the last slash on:

//DepotName/dir_level1/dir_level2/... 
//WorkspaceName/Workspace_dir/dir_level1/...


From: jenkins...@googlegroups.comjavascript: 
[mailto:jenkins...@googlegroups.comjavascript:] On Behalf Of Mark Wilhelm
Sent: Tuesday, April 15, 2014 1:30 PM
To: jenkins...@googlegroups.comjavascript:
Subject: Perforce Client View Type - View Map with multiple lines...

Hi,

I'm trying to select different levels of directories out of a Perforce Depot 
with the Jenkins Plugin for Perforce.It seems that only one statement is 
allowed (or works) unless I'm missing something.

For example...

essence:
//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir/dir_level1...
-//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir...
//DepotName/dir_level1/... //WorkspaceName/Workspace_dir...

example:
//Foo/Star/dev... //Foo_bld/Foo_bld/Star...
-//Foo/dev/bar... //Foo_bld/Foo_bld...
//Foo/dev... //Foo_bld/Foo_bld...

Directory: Use custom workspace = D:\workspaces
Workspace (client) = Foo_bld

The directories don't seem to be created (only one, and it seems only the first 
one).

What am I doing wrong?


--
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-use...@googlegroups.comjavascript:.
For more options, visit https://groups.google.com/d/optout.
--
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.commailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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/d/optout.


Re: Perforce Client View Type - View Map with multiple lines...

2014-04-16 Thread Mark Wilhelm
That example was mostly to depict leveling, the named example shows the 
different actual directories - so no conflict.  I'm wondering if there is 
a line ending issue?  Jenkins is just not working when the second/third 
lines are added.  When you look at the config.xml under the scm element 
(projectPath) what do you see?

thanks again for your help.

On Wednesday, April 16, 2014 8:59:11 AM UTC-5, rginga wrote:

  Well you certainly can map multiple lines. We do it all the time. 
 Admittedly most are one line and almost all simply do not use the second 
 mapping.

  

 Is your example accurate for what you want to do? Isn’t your second line 
 negate your first line? using the – is correct to eliminate folder 
 structures.

  

 //DepotName/dir_level1/dir_level2... 
 //WorkspaceName/Workspace_dir/dir_level1...

 -//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir...

 //DepotName/dir_level1/... //WorkspaceName/Workspace_dir...

  

  

 *From:* jenkins...@googlegroups.com javascript: [mailto:
 jenkins...@googlegroups.com javascript:] *On Behalf Of *Mark Wilhelm
 *Sent:* Tuesday, April 15, 2014 6:29 PM
 *To:* jenkins...@googlegroups.com javascript:
 *Subject:* Re: Perforce Client View Type - View Map with multiple lines...

  
  
 Thanks for the reply.  I don't think that's it though.  I have a number of 
 builds, and they don't have that ending slash.  It won't run with my extra 
 lines in there.  I took out the subsequent two lines, and it runs. But 
 that's not what I need.  
  
  
  
 When I've been looking at examples, most (all but one) only have one line 
 in the view map. But I have to believe that multiples are allowed - it 
 would seem to be limiting without that.  Having said that, how do I do it? 
  How do I also negate inclusion?
  
  
  


 On Tuesday, April 15, 2014 1:39:57 PM UTC-5, rginga wrote:
  
 Try putting the last slash on:

  

 //DepotName/dir_level1/dir_level2/... 
 //WorkspaceName/Workspace_dir/dir_level1/...

  

  

 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
 Behalf Of *Mark Wilhelm
 *Sent:* Tuesday, April 15, 2014 1:30 PM
 *To:* jenkins...@googlegroups.com
 *Subject:* Perforce Client View Type - View Map with multiple lines...

  
  
 Hi,
  
  
  
 I'm trying to select different levels of directories out of a Perforce 
 Depot with the Jenkins Plugin for Perforce.It seems that only one statement 
 is allowed (or works) unless I'm missing something.
  
  
  
 For example...
  
  
  
 essence:
   
 //DepotName/dir_level1/dir_level2... 
 //WorkspaceName/Workspace_dir/dir_level1...
  
 -//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir...
  
 //DepotName/dir_level1/... //WorkspaceName/Workspace_dir...
   
  
  
 example:
  
 //Foo/Star/dev... //Foo_bld/Foo_bld/Star...
  
 -//Foo/dev/bar... //Foo_bld/Foo_bld...
  
 //Foo/dev... //Foo_bld/Foo_bld...
  
  
   
 Directory: Use custom workspace = D:\workspaces
  
 Workspace (client) = Foo_bld
  
  
  
 The directories don't seem to be created (only one, and it seems only the 
 first one).
  
  
  
 What am I doing wrong?
  
  
  
  
  
 -- 
 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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
   
 -- 
 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-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.
  

-- 
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/d/optout.


Re: Jobs failed due to a bug in the code

2014-04-16 Thread Gaurav Gupta
Mailer version was 1.6, I upgraded to 1.8. This solves the problem. Thanks.

Regards,
Gaurav Gupta
Skype: gaurav.gupta.in , Ph: +91-8860023011


On Wed, Apr 16, 2014 at 7:20 PM, Slide slide.o@gmail.com wrote:

 What version of the Mailer plugin do you have?


 On Wed, Apr 16, 2014 at 5:59 AM, Gaurav Gupta gaurav.gu...@joshlabs.inwrote:

 I am getting following console output and job is failing. Anyone have any
 idea why this is failing. Jenkins version is 1.558

 ERROR: Processing failed due to a bug in the code. Please report this to 
 jenkinsci-users@googlegroups.com*12:30:00* java.lang.NullPointerException 
 http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
   at java.util.StringTokenizer.init(StringTokenizer.java:199) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:236) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
 at 
 hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
   at hudson.tasks.MailSender.getMail(MailSender.java:166) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
 at hudson.tasks.MailSender.execute(MailSender.java:100) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
 at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method*12:30:00*
   at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method*12:30:00*
   at 
 hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:826)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method*12:30:00*
at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method*12:30:00*
  at hudson.model.Run.execute(Run.java:1689) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method*12:30:00*
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method*12:30:00*
  at hudson.model.ResourceController.execute(ResourceController.java:88) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method*12:30:00*
  at hudson.model.Executor.run(Executor.java:231) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method*12:30:00*
  
 project=hudson.maven.MavenModuleSet@133df096[sw-app-template-build]*12:30:00*
  
 project.getModules()=[hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]]*12:30:00*
  
 project.getRootModule()=hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]*12:30:00*
  FATAL: null*12:30:00* java.lang.NullPointerException 
 http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:199) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:236) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
 at 
 hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
   at hudson.tasks.MailSender.getMail(MailSender.java:166) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
 at hudson.tasks.MailSender.execute(MailSender.java:100) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
 at 

Re: Jobs failed due to a bug in the code

2014-04-16 Thread Slide
I need to create a PR to update the bundled version of mailer. This is a
good reminder.
On Apr 16, 2014 7:33 AM, Gaurav Gupta gaurav.gu...@joshlabs.in wrote:

 Mailer version was 1.6, I upgraded to 1.8. This solves the problem. Thanks.

 Regards,
 Gaurav Gupta
 Skype: gaurav.gupta.in , Ph: +91-8860023011


 On Wed, Apr 16, 2014 at 7:20 PM, Slide slide.o@gmail.com wrote:

 What version of the Mailer plugin do you have?


 On Wed, Apr 16, 2014 at 5:59 AM, Gaurav Gupta 
 gaurav.gu...@joshlabs.inwrote:

 I am getting following console output and job is failing. Anyone have
 any idea why this is failing. Jenkins version is 1.558

 ERROR: Processing failed due to a bug in the code. Please report this to 
 jenkinsci-users@googlegroups.com*12:30:00* java.lang.NullPointerException 
 http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:199) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:236) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
 at 
 hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
   at hudson.tasks.MailSender.getMail(MailSender.java:166) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
 at hudson.tasks.MailSender.execute(MailSender.java:100) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.executeentity=method*12:30:00*
 at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:55) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.reporters.MavenMailer.endentity=method*12:30:00*
   at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.AbstractMavenBuilder.endentity=method*12:30:00*
   at 
 hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:826)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRunentity=method*12:30:00*
at 
 hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523)
  
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.runentity=method*12:30:00*
  at hudson.model.Run.execute(Run.java:1689) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.executeentity=method*12:30:00*
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:507) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModuleSetBuild.runentity=method*12:30:00*
  at hudson.model.ResourceController.execute(ResourceController.java:88) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.executeentity=method*12:30:00*
  at hudson.model.Executor.run(Executor.java:231) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.runentity=method*12:30:00*
  
 project=hudson.maven.MavenModuleSet@133df096[sw-app-template-build]*12:30:00*
  
 project.getModules()=[hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]]*12:30:00*
  
 project.getRootModule()=hudson.maven.MavenModule@68dbb0b3[sw-app-template-build/com.videology:sw-app-template][sw-app-template-build/com.videology:sw-app-template][relativePath:]*12:30:00*
  FATAL: null*12:30:00* java.lang.NullPointerException 
 http://stacktrace.jenkins-ci.org/search?query=java.lang.NullPointerException*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:199) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at java.util.StringTokenizer.init(StringTokenizer.java:236) 
 http://stacktrace.jenkins-ci.org/search/?query=java.util.StringTokenizer.%3Cinit%3Eentity=method*12:30:00*
  at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createEmptyMailentity=method*12:30:00*
 at 
 hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:175) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.createBackToNormalMailentity=method*12:30:00*
   at hudson.tasks.MailSender.getMail(MailSender.java:166) 
 http://stacktrace.jenkins-ci.org/search/?query=hudson.tasks.MailSender.getMailentity=method*12:30:00*
 at 

Re: no route to host using LDAP and Active Directory

2014-04-16 Thread Terry Lacy
Unfortunately, I'm on Linux, so I don't think the Active Directory plugin 
is an option.  From what I've read, you can use it on Linux, but it just 
falls back to LDAP authentication.

FWIW, after updating to Jenkins 1.557, and also updating the LDAP plugin, 
login no longer fails.  I still occasionally get long delays when logging 
in, and I still see the No route to host exception in the logs, but it 
doesn't prevent me from logging in.

Terry

On Tuesday, April 1, 2014 3:16:48 PM UTC-6, Terry Lacy wrote:


 I'm having intermittent issues authenticating with Jenkins.  I use LDAP 
 with Active Directory.  My Jenkins server is on Ubuntu 12.04 Server, and AD 
 is running on Windows 2008 R2.

 When authentication fails, I see this in my logs:

 Apr 01, 2014 2:15:04 PM hudson.security.AuthenticationProcessingFilter2 
 onUnsuccessfulAuthentication
 INFO: Login attempt failed
 org.acegisecurity.AuthenticationServiceException: LdapCallback;null; 
 nested exception is javax.naming.PartialResultException [Root exception is 
 javax.naming.CommunicationException: mysubdomain.mydomain.org:389 [Root 
 exception is java.net.NoRouteToHostException: No route to host]]; nested 
 exception is org.acegisecurity.ldap.LdapDataAccessException: 
 LdapCallback;null; nested exception is javax.naming
 .PartialResultException [Root exception is 
 javax.naming.CommunicationException: mysubdomain.mydomain.org:389 [Root 
 exception is java.net.NoRouteToHostException: No route to host]]
 at 
 org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser(LdapAuthenticationProvider.java:238)
 at 
 org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122)

 Notice that it says mysubdomain.mydomain.org:389 (I changed this from 
 my real domain/subdomain).  mysubdomain.mydomain.org doesn't exist, and 
 that's not actually the address of my AD server.  I actually have my LDAP 
 server configured using an IP address.  In fact, I can't find 
 mysubdomain.mydomain.org when I grep my configuration, so I have no idea 
 where it's coming from, other than I suppose you could cobble it together 
 from the root search names.

 Am I mistaken in believing that it's trying to show the server name it's 
 trying to connect to in the exception?

 Any ideas?

 Terry


-- 
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/d/optout.


href link using ftp issue

2014-04-16 Thread mpc8250
Hi All

We try to put some description on Jenkins page and place a href link using 
ftp.
It appears that Jenkins top/system page refuses to set/accept a simple link 
like this.
It returns as a text test.

a href=ftp://hostname.test.com/some/path;test/a

Hudson UI has no issue with this syntax.
How can we restore this function in Jenkins ?

Thanks

-- 
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/d/optout.


How to get specific version in CVS for co with Jenkins/Hudson ?

2014-04-16 Thread mpc8250
Hi All

We are trying to configure CVS in our job configuration.

1) In SVN, we could control the SVN co based on svn revision number e.g. 
http://server/branch/projectA@revnumber
How do we set up in the CVS SCM section where we co the trunk based on HEAD 
or specific tag to do like what we did for SVN ?

2) what is local directory for in CVS SCM section ?

Thanks

-- 
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/d/optout.


email-ext when a string is found in ${BUILD_LOG}

2014-04-16 Thread Nicolas Daigneault
Hello,

I'm a new user of jenkins, I use it with munki/autopkg for the people who 
know what it is.  I have about 20 job that are running every day.

I would like to have a notification by email each time that the string Nothing 
downloaded *is not found* in the build result.  I found in the project 
build configuration that I can add a script to trigger the email, but I 
don't have any idea how to build my script.

I know what I wan't, but not how to do it.  Can you help me with this?

Thanks

This is an example of ${BUILD_LOG} that I don't want notification, in some 
case I will have a success too but it will have something downloaded, in 
this case I would like a notification:

Démarré par le projet amont -- Lance tout -- 
http://csshod.cssh.qc.ca:8080/job/--%20Lance%20tout%20--/ de numéro de build 
6 http://csshod.cssh.qc.ca:8080/job/--%20Lance%20tout%20--/6
originally caused by:
 Lancé par une alarme périodique
Building in workspace /Users/Shared/Jenkins/Home/workspace/AdobeReader
[AdobeReader] $ /bin/sh -xe 
/var/folders/SE/SE3tZHqxGySS841gCbBcfDo/-Tmp-/hudson4682873127245679909.sh
+ /usr/local/bin/autopkg run AdobeReader.munki
Processing AdobeReader.munki...

Nothing downloaded, packaged or imported.
Finished: SUCCESS

-- 
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/d/optout.


Re: How to reset the build number

2014-04-16 Thread Curtis Kline
There may be a way to set the next build number within the Jenkins core,
but I use this plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Next+Build+Number+Plugin

It provides a useful link in the left column of the job page: Set next
build number


Curtis



On Tue, Apr 15, 2014 at 11:13 PM, Praveen Jaikumar praveens...@gmail.comwrote:

 We restored the Jenkins to previous time .  Even thought the jobs in the
 backend, Its not displaying in the front end as previous build is greated
 than the current build.Can any one tell me how to reset the build in  Jenkins
 1.555.

 --
 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/d/optout.


-- 
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/d/optout.


Subversion Exclusion revprop name - trying to use this to ignore certain svn commits, but can't seem to get this to work

2014-04-16 Thread Robert Mackin
I'm setting up Jenkins to replace our homegrown build system. 

I want to set it up so that we poll for svn changes and build when a change 
is detected. 
Problem is our current build checks a file into the project's svn 
repository after a build. That means polling will *always* find a change. I 
only want to build if a developer checks something in.

I discovered that the Subversion plugin allows you to configure an Exclusion 
revprop name, documented thus:

If set, and Jenkins is set to poll for changes, Jenkins will ignore any 
revisions that are marked with the given revision property (revprop) when 
determining if a build needs to be triggered. This can be used to exclude 
commits done by the build itself from triggering another build, assuming 
the build server commits the change with the correct revprop.
This type of exclusion only works with Subversion 1.5 servers and newer.

My svn server is running 1.7.7, and I'm running Version 2.2 of the 
Subversion Plugin on Jenkins 1.557.

I tried setting the Exclusion revprop name to jenkins, and then I 
tested with this checkin:
 svn commit -m test --with-revprop jenkins=jenkins Foo.java

But jenkins sees this change and triggers a build. I tried leaving out the 
=jenkins part, to no avail.

Am I misunderstanding the documentation? Shouldn't jenkins ignore this 
change? 
Or am I doing something obviously wrong?

Is there another way to do this?

Thanks in advance

-- 
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/d/optout.


Re: Perforce Client View Type - View Map with multiple lines...

2014-04-16 Thread Mark Wilhelm
Well it appears to be working now. I hand modified the config.xml for the 
job, and made sure they were on different lines and spacing wasn't an 
issue. Now the multi view mapping is working as described.

Thank you for the feedback rginga.


On Wednesday, April 16, 2014 9:31:46 AM UTC-5, Mark Wilhelm wrote:

 That example was mostly to depict leveling, the named example shows the 
 different actual directories - so no conflict.  I'm wondering if there is 
 a line ending issue?  Jenkins is just not working when the second/third 
 lines are added.  When you look at the config.xml under the scm element 
 (projectPath) what do you see?

 thanks again for your help.

 On Wednesday, April 16, 2014 8:59:11 AM UTC-5, rginga wrote:

  Well you certainly can map multiple lines. We do it all the time. 
 Admittedly most are one line and almost all simply do not use the second 
 mapping.

  

 Is your example accurate for what you want to do? Isn’t your second line 
 negate your first line? using the – is correct to eliminate folder 
 structures.

  

 //DepotName/dir_level1/dir_level2... 
 //WorkspaceName/Workspace_dir/dir_level1...

 -//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir...

 //DepotName/dir_level1/... //WorkspaceName/Workspace_dir...

  

  

 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
 Behalf Of *Mark Wilhelm
 *Sent:* Tuesday, April 15, 2014 6:29 PM
 *To:* jenkins...@googlegroups.com
 *Subject:* Re: Perforce Client View Type - View Map with multiple 
 lines...

  
  
 Thanks for the reply.  I don't think that's it though.  I have a number 
 of builds, and they don't have that ending slash.  It won't run with my 
 extra lines in there.  I took out the subsequent two lines, and it runs. 
 But that's not what I need.  
  
  
  
 When I've been looking at examples, most (all but one) only have one line 
 in the view map. But I have to believe that multiples are allowed - it 
 would seem to be limiting without that.  Having said that, how do I do it? 
  How do I also negate inclusion?
  
  
  


 On Tuesday, April 15, 2014 1:39:57 PM UTC-5, rginga wrote:
  
 Try putting the last slash on:

  

 //DepotName/dir_level1/dir_level2/... 
 //WorkspaceName/Workspace_dir/dir_level1/...

  

  

 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On 
 Behalf Of *Mark Wilhelm
 *Sent:* Tuesday, April 15, 2014 1:30 PM
 *To:* jenkins...@googlegroups.com
 *Subject:* Perforce Client View Type - View Map with multiple lines...

  
  
 Hi,
  
  
  
 I'm trying to select different levels of directories out of a Perforce 
 Depot with the Jenkins Plugin for Perforce.It seems that only one statement 
 is allowed (or works) unless I'm missing something.
  
  
  
 For example...
  
  
  
 essence:
   
 //DepotName/dir_level1/dir_level2... 
 //WorkspaceName/Workspace_dir/dir_level1...
  
 -//DepotName/dir_level1/dir_level2... //WorkspaceName/Workspace_dir...
  
 //DepotName/dir_level1/... //WorkspaceName/Workspace_dir...
   
  
  
 example:
  
 //Foo/Star/dev... //Foo_bld/Foo_bld/Star...
  
 -//Foo/dev/bar... //Foo_bld/Foo_bld...
  
 //Foo/dev... //Foo_bld/Foo_bld...
  
  
   
 Directory: Use custom workspace = D:\workspaces
  
 Workspace (client) = Foo_bld
  
  
  
 The directories don't seem to be created (only one, and it seems only the 
 first one).
  
  
  
 What am I doing wrong?
  
  
  
  
  
 -- 
 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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
   
 -- 
 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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
  


-- 
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/d/optout.


Re: Subversion Exclusion revprop name - trying to use this to ignore certain svn commits, but can't seem to get this to work

2014-04-16 Thread Daniel Beck
The global exclusion revprop configuration option has absolutely no associated 
functionality.

You need to set the equivalent option in the per-job SCM configuration.

On 16.04.2014, at 21:41, Robert Mackin robert.mac...@gmail.com wrote:

 I'm setting up Jenkins to replace our homegrown build system. 
 
 I want to set it up so that we poll for svn changes and build when a change 
 is detected. 
 Problem is our current build checks a file into the project's svn repository 
 after a build. That means polling will *always* find a change. I only want to 
 build if a developer checks something in.
 
 I discovered that the Subversion plugin allows you to configure an Exclusion 
 revprop name, documented thus:
 
 If set, and Jenkins is set to poll for changes, Jenkins will ignore any 
 revisions that are marked with the given revision property (revprop) when 
 determining if a build needs to be triggered. This can be used to exclude 
 commits done by the build itself from triggering another build, assuming the 
 build server commits the change with the correct revprop.
 This type of exclusion only works with Subversion 1.5 servers and newer.
 
 My svn server is running 1.7.7, and I'm running Version 2.2 of the Subversion 
 Plugin on Jenkins 1.557.
 
 I tried setting the Exclusion revprop name to jenkins, and then I tested 
 with this checkin:
  svn commit -m test --with-revprop jenkins=jenkins Foo.java
 
 But jenkins sees this change and triggers a build. I tried leaving out the 
 =jenkins part, to no avail.
 
 Am I misunderstanding the documentation? Shouldn't jenkins ignore this 
 change? 
 Or am I doing something obviously wrong?
 
 Is there another way to do this?
 
 Thanks in advance
 
 -- 
 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/d/optout.

-- 
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/d/optout.


Re: email-ext when a string is found in ${BUILD_LOG}

2014-04-16 Thread Slide
Something like this in the script trigger:

!build.getLog(10).contains('Nothing downloaded')


On Wed, Apr 16, 2014 at 10:26 AM, Nicolas Daigneault 
nicolas.daignea...@gmail.com wrote:

 Hello,

 I'm a new user of jenkins, I use it with munki/autopkg for the people who
 know what it is.  I have about 20 job that are running every day.

 I would like to have a notification by email each time that the string 
 Nothing
 downloaded *is not found* in the build result.  I found in the project
 build configuration that I can add a script to trigger the email, but I
 don't have any idea how to build my script.

 I know what I wan't, but not how to do it.  Can you help me with this?

 Thanks

 This is an example of ${BUILD_LOG} that I don't want notification, in some
 case I will have a success too but it will have something downloaded, in
 this case I would like a notification:

 Démarré par le projet amont -- Lance tout -- 
 http://csshod.cssh.qc.ca:8080/job/--%20Lance%20tout%20--/ de numéro de 
 build 6 http://csshod.cssh.qc.ca:8080/job/--%20Lance%20tout%20--/6
 originally caused by:
  Lancé par une alarme périodique
 Building in workspace /Users/Shared/Jenkins/Home/workspace/AdobeReader
 [AdobeReader] $ /bin/sh -xe 
 /var/folders/SE/SE3tZHqxGySS841gCbBcfDo/-Tmp-/hudson4682873127245679909.sh
 + /usr/local/bin/autopkg run AdobeReader.munki
 Processing AdobeReader.munki...

 Nothing downloaded, packaged or imported.
 Finished: SUCCESS

  --
 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/d/optout.




-- 
Website: http://earl-of-code.com

-- 
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/d/optout.


EnvInject and inserting values into manifest.mf

2014-04-16 Thread Maureen Barger
We have been successfully using maven and envinject to insert
releasenumber into the manifest.mf of all of our artifacts. The
properties file is generated at the start of the release cycle and
lives outside of jenkins on the filesystem of our nodes. It's been
working great!

Now we need to add the build date to the releasenumber and include it
in the manifest. We tried at first injecting the properties file as we
had done, then manipulating the releasenumber variable and writing the
new entry to a new properties file in the workspace, injecting it as a
build step. While other elements picked up the new releasenumber
value, the manifest.mf files were reading the value from the initial
read of the properties file on the filesystem.

So I decided to change the name of the var in this properties file to
RN and read it in as usual. In the script content of the same
envinject stanza, I set releasenumber=$RN.$(date +%m%d)

Once again in every other place but manifest.mf, the releasenumber
variable is displayed correctly. But in the manifest.mf it shows
{releasenumber}.

I'm stumped. Does anyone have any suggestions?

-- 
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/d/optout.


Re: NullPointer from hudson.maven.Maven3Builder$MavenExecutionListener with maven-native-plugin/packaging dll

2014-04-16 Thread James Hutton
Looks like this is related to jenkins-12259.

On Friday, March 14, 2014 8:16:39 AM UTC-4, James Hutton wrote:

 I have a multimodule plugin that has a native module in it that produces a 
 dll (don't ask, legacy reasons).  However it appears that jenkins is not 
 producing a MavenBuildProxy2 instance that matches the module's name, hence 
 on projectStarted, etc the execution listener throws a nullpointerexception 
 and dies (I had to use my own ExecutionListener to log that, see below). 
  The version of jenkins is 1.466 (I know old, I don't manage the instance) 
 and the maven plugin is the same that is bundled with that version of 
 jenkins.  Has anyone seen this before?  Or should I just get them to 
 upgrade and see if it fixes itself? Stacktrace is as follows:

 org.apache.maven.InternalErrorException: Internal error: 
 java.lang.NullPointerException
   at 
 org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
   at 
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
   at 
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
   at 
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
   at 
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
   at 
 org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
   at 
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
   at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
   at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
   at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
   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:1110)
   at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
   at java.lang.Thread.run(Thread.java:722)
 Caused by: java.lang.NullPointerException
   at 
 hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:417)
  -- Occurs for all execution lifecycles for the module
   at 
 hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:403)
   at com.chase.ccs.ess.sc.ArmPublish.mojoSucceeded(ArmPublish.java:322) 
 -- My ExecutionListener
   at 
 org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
   at 
 org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
   at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
   at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at 
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)



-- 
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/d/optout.