[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-12-20 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Status: 
 Reopened Open  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.14096.1576848060383%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-12-20 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Thanks! I agree wholeheartedly that it is a bug and it is much worse to throw a null pointer exception than to provide the user a clear message.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.14094.1576847700165%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-12-20 Thread sven.hickst...@draeger.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sven Hickstein edited a comment on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 That's right. It is very counterintuitive. But for people that are not able to use Multibranch Pipelines (huge git repositories, long build times and seperate workspaces for every branch does not work very well) this is the only option. Thanks for pointing me to the issue. That is one problem we are currently facing.Nevertheless, throwing a NullPointerException is not very intuitive either. A human readable error message (or just a Fallback to heavyweight checkout) might be a better option in my opinion.  EDIT: We use it in conjunction with Bitbucket Server and the "Webhook to Jenkins for Bitbucket Server" Plugin. We can get a deterministic checkout of the related Jenkinsfile this way.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.14085.1576844760191%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-12-20 Thread sven.hickst...@draeger.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sven Hickstein commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 That's right. It is very counterintuitive. But for people that are not able to use Multibranch Pipelines (huge git repositories, long build times and seperate workspaces for every branch does not work very well) this is the only option. Thanks for pointing me to the issue. That is one problem we are currently facing. Nevertheless, throwing a NullPointerException is not very intuitive either. A human readable error message (or just a Fallback to heavyweight checkout) might be a better option in my opinion.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.14082.1576844640142%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-12-20 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Thanks Sven Hickstein. It seems counterintuitive to me to use a wildcard for a Pipeline job branch name. That will cause the specific Pipeline job to switch between branches as changes arrive on the individual branches. That creates a changelog in the job which is difficult to understand and leads to the JENKINS-19022 XML bloat problem. The multibranch Pipeline job type is designed to automatically create and destroy jobs for each branch in a repository.  Is there a use case that I've missed for wildcard branch names with a Pipeline job?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.14079.1576844040234%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-12-20 Thread sven.hickst...@draeger.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sven Hickstein reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 I was able to reproduce the issue. Just use a star "*" as the branch pattern. This will result in a NullPointerException. Maybe you should add this to the "not supported" checks in the GitSCMFileSystem class: https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/jenkins/plugins/git/GitSCMFileSystem.java#L255  And if you're on it: If you leave the branch field empty or use the default "**" the plugin will complain about an invalid refspec: 

 

java.lang.IllegalArgumentException: Invalid refspec refs/heads/**
 at org.eclipse.jgit.transport.RefSpec.checkValid(RefSpec.java:540)
 at org.eclipse.jgit.transport.RefSpec.(RefSpec.java:192)
 at org.eclipse.jgit.transport.RefSpec.(RefSpec.java:227)
 at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:345)
 at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197)
 at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173)
 at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:115)
 at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:69)
 at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:299)
 at hudson.model.ResourceController.execute(ResourceController.java:97)
 at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
 

 Maybe this should be added to the not supported cases too.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Sven Hickstein  
 
 
Resolution: 
 Cannot Reproduce  
 
 
Status: 
 Closed Reopened  
 

  
 
 
 
 

 
 
 

 
 
   

[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-08-02 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Status: 
 Fixed but Unreleased Closed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.6763.1564753320350%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-08-02 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Thanks for checking again. If you find a way to duplicate it, please reopen it with the details.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Status: 
 Open Fixed but Unreleased  
 
 
Resolution: 
 Cannot Reproduce  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.6761.1564753320311%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-08-02 Thread jbla...@kickflop.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jeff Blaine commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Well isn't that fun... I came back finally to provide you with more info and ... can no longer reproduce this. I guess this can be closed. Thanks for assisting and trying to solve this with me, Mark.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.6712.1564752480292%40Atlassian.JIRA.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-06-30 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 

  
 
 
 
 

 
 Jenkins 2.164.3 with Git Plugin 3.9.3With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output._Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.{noformat}Started by user  }}{{ java.lang.NullPointerException at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117) at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114) at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193) at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72) at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189) at jenkins.plugins.git.GitSCMFileSystem.(GitSCMFileSystem.java:114) at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)Finished: FAILURE{noformat}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 
 

[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-28 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I used an ssh protocol Bitbucket URL (g...@bitbucket.org:markewaite/jenkins-bugs.git) to clone the Pipeline with git plugin 3.10.0 and git plugin 4.0 pre-release without seeing an NPE. I also used ssh://g...@bitbucket.org/markewaite/jenkins-bugs.git to check with git plugin 3.10.0. I'm using an ed235519 ssh credential with the Bitbucket repository. Unfortunately, I still can't duplicate the problem you're seeing.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.13850.1559058300134%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-28 Thread jbla...@kickflop.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jeff Blaine commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Yes, I can still reproduce the same NPE with "Lightweight checkout" enabled using Git Plugin 3.10.0. 
 
Our job definition uses a repo URL of the format ssh://g...@bitbucket.our.org/~username/repo.git 
Our job definition specifies the appropriate Jenkins creds for that URL 
 Maybe that will lead us somewhere?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.13736.1559054220108%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-28 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Since 3.10.0 doesn't change anything in this area compared to 3.9.3, I assume you will still be able to duplicate it.  If you can duplicate it, please upload the config.xml of the job definition so that I can compare it to my test job. Also, please describe any areas where the steps you took were different than the steps I took.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.13733.1559054040217%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-28 Thread jbla...@kickflop.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jeff Blaine commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Mark, I will try to reproduce with Git Plugin 3.10.0. That wasn't available yet when we saw this failure. If it still fails, I will provide more details about our config and the job config but the latter test case is pretty simplistic.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.13632.1559051040137%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-26 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 Any further details Jeff Blaine?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.12176.1558919640080%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-22 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite edited a comment on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I am unable to duplicate the problem you're describing.My attempt to duplicate the problem on Jenkins 2.164.3 with git plugin 3.10.0 on Debian 9 with JDK 8:# Create [JENKINS-57587 branch|https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-57587/README.md] in my jenkins-bugs repository# Create a [pipeline job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1]# Configure job to get Pipeline script from SCM using Git# Configure git repository https://github.com/MarkEWaite/jenkins-bugs to checkout branch JENKINS-57587# Leave {{Lightweight checkout}} enabled in the job definition# Save the job definition# Build nowCan you provide more details on your configuration and how it is different from the configuration I tried?My [test job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1] uses a [pipeline shared library|https://github.com/MarkEWaite/jenkins-pipeline-utils]. The [source code at the failing location|https://github.com/jenkinsci/git-plugin/blob/0e5a390cafaaa59f9b3cb11cf67b6cfcb14fbe53/src/main/java/jenkins/plugins/git/GitSCMFileSystem.java#L117] indicates that either the repository was null or the returned ObjectId was null.  Neither are expected conditions.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8850.1558533360126%40Atlassian.JIRA.
For more options, visit 

[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite edited a comment on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I am unable to duplicate the problem you're describing.My attempt to duplicate the problem on Jenkins 2.164.3 with git plugin 3.10.0  on Debian 9 with JDK 8 :# Create [JENKINS-57587 branch|https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-57587/README.md] in my jenkins-bugs repository# Create a [pipeline job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1]# Configure job to get Pipeline script from SCM using Git# Configure git repository https://github.com/MarkEWaite/jenkins-bugs to checkout branch JENKINS-57587# Leave {{Lightweight checkout}} enabled in the job definition# Save the job definition# Build nowCan you provide more details on your configuration and how it is different from the configuration I tried?My [test job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1] uses a [pipeline shared library|https://github.com/MarkEWaite/jenkins-pipeline-utils].  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8155.1558472880271%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite edited a comment on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I am unable to duplicate the problem you're describing.My attempt to duplicate the problem on Jenkins 2.164.3 with git plugin 3.10.0:# Create [JENKINS-57587 branch|https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-57587/README.md] in my jenkins-bugs repository# Create a [pipeline job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1]# Configure job to get Pipeline script from SCM using Git# Configure git repository https://github.com/MarkEWaite/jenkins-bugs to checkout branch JENKINS-57587# Leave {{Lightweight checkout}} enabled in the job definition# Save the job definition# Build nowCan you provide more details on your configuration and how it is different from the configuration I tried?My [test job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1] uses a [pipeline shared library|https://github.com/MarkEWaite/jenkins-pipeline-utils].  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8153.1558472820255%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite edited a comment on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I am unable to duplicate the problem you're describing.My attempt to duplicate the problem on Jenkins 2.164.3 with git plugin 3.10.0:# Create [JENKINS-57587 branch|https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-57587/README.md] in my jenkins-bugs repository# Create a  [pipeline job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/  JENKINS-57587  pipeline job -NPE-on-lightweight-checkout/config.xml#L1] # Configure job to get Pipeline script from SCM using Git# Configure git repository https://github.com/MarkEWaite/jenkins-bugs to checkout branch JENKINS-57587# Leave {{Lightweight checkout}} enabled in the job definition# Save the job definition# Build nowCan you provide more details on your configuration and how it is different from the configuration I tried?My [test job|https://github.com/MarkEWaite/docker-lfs/blob/940d3bd3a4c27aa56d4d1a9f1efd841927ba095b/ref/jobs/Bugs-Individual/jobs/JENKINS-57587-NPE-on-lightweight-checkout/config.xml#L1] uses a [pipeline shared library|https://github.com/MarkEWaite/jenkins-pipeline-utils].  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8151.1558472820232%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 

  
 
 
 
 

 
 Jenkins 2.164.3 with Git Plugin 3.9.3With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output._Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.{ noformat {  Started by user }}{{java.lang.NullPointerException }}  {{  at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117) }}  {{  at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114) }}  {{  at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193) }}  {{  at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29) }}  {{  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72) }}  {{  at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189) }}  {{  at jenkins.plugins.git.GitSCMFileSystem.(GitSCMFileSystem.java:114) }}  {{  at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353) }}  {{  at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198) }}  {{  at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174) }}  {{  at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108) }}  {{  at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67) }}  {{  at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293) }}  {{  at hudson.model.ResourceController.execute(ResourceController.java:97) }}  {{  at hudson.model.Executor.run(Executor.java:429) }}  {{ Finished: FAILURE {noformat } }  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 
   

[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 

  
 
 
 
 

 
 Jenkins 2.164.3 with Git Plugin 3.9.3With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output._Unchecking_ "Lightweight checkout" solves the immediate NPE issue and the job completes.{noformat { } Started by user }}{{java.lang.NullPointerException at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117) at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114) at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193) at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72) at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189) at jenkins.plugins.git.GitSCMFileSystem.(GitSCMFileSystem.java:114) at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)Finished: FAILURE{noformat}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 
   

[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I am unable to duplicate the problem you're describing. My attempt to duplicate the problem on Jenkins 2.164.3 with git plugin 3.10.0: 
 
Create JENKINS-57587 branch in my jenkins-bugs repository 
Create a JENKINS-57587 pipeline job 
Configure job to get Pipeline script from SCM using Git 
Configure git repository https://github.com/MarkEWaite/jenkins-bugs to checkout branch JENKINS-57587 
Leave Lightweight checkout enabled in the job definition 
Save the job definition 
Build now 
 Can you provide more details on your configuration and how it is different from the configuration I tried? My test job uses a pipeline shared library.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8144.1558471920018%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Assignee: 
 Mark Waite  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8142.1558471890296%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite commented on  JENKINS-57587  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Lightweight checkout gives NPE   
 

  
 
 
 
 

 
 I am unable to duplicate the problem you're describing. My attempt to duplicate the problem on Jenkins 2.164.3 with git plugin 3.10.0: 
 
Create JENKINS-57587 branch in my jenkins-bugs repository 
Create a JENKINS-57587 pipeline job 
Configure job to get Pipeline script from SCM using Git 
Configure git repository https://github.com/MarkEWaite/jenkins-bugs to checkout branch JENKINS-57587 
Leave Lightweight checkout enabled in the job definition 
Save the job definition 
Build now 
 Can you provide more details on your configuration and how it is different from the configuration I tried? My test job uses a pipeline shared library.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.199505.1558465141000.8140.1558471870238%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-57587) Lightweight checkout gives NPE

2019-05-21 Thread jbla...@kickflop.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jeff Blaine created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-57587  
 
 
  Lightweight checkout gives NPE   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Mark Waite  
 
 
Components: 
 git-plugin  
 
 
Created: 
 2019-05-21 18:59  
 
 
Labels: 
 NPE  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Jeff Blaine  
 

  
 
 
 
 

 
 Jenkins 2.164.3 with Git Plugin 3.9.3 With the most basic Pipeline job from SCM with "Lightweight checkout" checked, the following NPE trace is the total job output. Unchecking "Lightweight checkout" solves the immediate NPE issue and the job completes. Started by user java.lang.NullPointerException {{ at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:117)}} {{ at jenkins.plugins.git.GitSCMFileSystem$1.invoke(GitSCMFileSystem.java:114)}} {{ at jenkins.plugins.git.GitSCMFileSystem$3.invoke(GitSCMFileSystem.java:193)}} {{ at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:29)}} {{ at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:72)}} {{ at jenkins.plugins.git.GitSCMFileSystem.invoke(GitSCMFileSystem.java:189)}} {{ at jenkins.plugins.git.GitSCMFileSystem.(GitSCMFileSystem.java:114)}} {{ at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:353)}} {{ at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)}} {{ at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)}} {{ at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)}} {{ at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)}} {{ at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)}} {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}} {{ at hudson.model.Executor.run(Executor.java:429)}} Finished: FAILURE