[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-19 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale closed an issue as Duplicate  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-46290  
 
 
  Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
Change By: 
 Michael Neale  
 
 
Status: 
 Reopened Closed  
 
 
Resolution: 
 Duplicate  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-19 Thread mne...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael Neale commented on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 great - I might close this as a duplicate, but Sam Gleske's comment above is handy! thanks  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-18 Thread sam.mxra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Gleske commented on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 Stephen Connolly your suggestion appears to have fixed the issue. Fixed by https://github.com/samrocketman/jervis/commit/e4cd6324ff22c3593d7e6feab88dff79e516e14b I'll do some more testing but it now appears to work reliably. Required After making the change from Stephen Connolly's suggestion I had to click "Scan Repository Now".  The problem continued to be broken until I scanned the repository for branches. Results (the fixed flow) The following flow is how I reproduced reliably and confirmed the fix. 
 
Bootstrapped Jenkins with vagrant 
Generated a multibranch pipeline for samrocketman/jervis project. 
Clicked "Scan repository Now" so branches would be detected. 
Clicked "Build now" on the jervis_simple branch.  This always succeeded the first time. 
Log into Jenkins and restart it.  /etc/init.d/jenkins stop; /etc/init.d/jenkins start 
Visit the jervis job and click "Build now" (the ERROR used to occur here every time with this flow; clicking build repeatedly and restarting Jenkins did not help and caused the same failure every time) 
 After the fix, step 6 above now always works and I no longer encounter the error.  I will test further to be absolutely sure it's fixed.  Thanks Stephen!  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
   

[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-18 Thread sam.mxra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Gleske commented on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 Thanks for the pointer, I will make the change to test.  I'm glad my projects are open source so you are able to inspect it and give me pointers Stephen Connolly.  I will report back my results.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-17 Thread stephen.alan.conno...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Stephen Connolly commented on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 This looks to be the exact situation of the second case I describe in https://issues.jenkins-ci.org/browse/JENKINS-48571?focusedCommentId=329111=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-329111 Namely the Job DSL plugin is being used to configure a branch source that has a null id. You must provide an ID: https://github.com/samrocketman/jervis/blob/b25af324cce229255fd34c9070f32da4d0d8b393/jobs/jenkins_job_multibranch_pipeline.groovy#L38-L52 Change  

 

github {
//github
credentialsId 'github-user-and-token'
repoOwner project_folder
repository project_name
//behaviors not supported by job dsl

//additional behaviors
traits {
headWildcardFilterWithPR {
includes "${JERVIS_BRANCH}"
excludes ''
}
}
}
 

 to 

 

github {
//github
id 'anything-does-not-matter-as-only-one-source-configured'
credentialsId 'github-user-and-token'
repoOwner project_folder
repository project_name
//behaviors not supported by job dsl

//additional behaviors
traits {
headWildcardFilterWithPR {
includes "${JERVIS_BRANCH}"
excludes ''
}
}
}
 

 And the problem should go away. Sam Gleske can you confirm the above?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-17 Thread sam.mxra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Gleske commented on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 I would like to point out that this plugin is attempting to resolve the tip of my "jervis_simple" branch (as it should because I am building the jervis_simple branch) but for some reason is flailing about with the tip of master branch. 

 
Started by user Sam Gleske
Running in Durability level: MAX_SURVIVABILITY
Loading library Jervis Global Library@master
Attempting to resolve master from remote references...
 > git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub user and personal access token used by multibranch pipeline jobs for the GitHub API
 > git ls-remote -h -t https://github.com/samrocketman/jervis.git # timeout=10
Found match: refs/heads/master revision a82c0668ab31f0c992d26575e415971648c5c185
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/samrocketman/jervis.git # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/samrocketman/jervis.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub user and personal access token used by multibranch pipeline jobs for the GitHub API
 > git fetch --no-tags --progress https://github.com/samrocketman/jervis.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision a82c0668ab31f0c992d26575e415971648c5c185 (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a82c0668ab31f0c992d26575e415971648c5c185
Commit message: "bump to snapshot"
 > git rev-list --no-walk a82c0668ab31f0c992d26575e415971648c5c185 # timeout=10
[Pipeline] End of Pipeline
ERROR: Could not determine exact tip revision of jervis_simple
Finished: FAILURE
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA 

[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-17 Thread sam.mxra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Gleske edited a comment on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 I also encountered this in my project when building Jervis.  Seems like odd behavior.  If it can't compare to a previous revision then it should default to the git tip of the branch.This reliably happens to me.  I shut down the service and start it.  If I enter a branch and run it (after having already built it once) I get this issue. I'm using the pipeline multibranch plugin.  Anybody can bootstrap my project with vagrant and replicate the behavior.  https://github.com/samrocketman/jenkins-bootstrap-jervis  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-17 Thread sam.mxra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Gleske edited a comment on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 I also encountered this in my project when building Jervis.  Seems like odd behavior.  If it can't compare to a previous revision then it should default to the git tip of the branch.This reliably happens to me.  I shut down the service and start it.  If I enter a branch  and run it  (after having already built it once) I get this issue.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-17 Thread sam.mxra...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sam Gleske commented on  JENKINS-46290  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
 I also encountered this in my project when building Jervis. Seems like odd behavior. If it can't compare to a previous revision then it should default to the git tip of the branch. This reliably happens to me. I shut down the service and start it. If I enter a branch (after having already built it once) I get this issue.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-46290) Project checkout fails (ERROR: Could not determine exact tip revision of master)

2018-02-09 Thread sorin.sbar...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sorin Sbarnea reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 I am reopening the issue because I found a way to replicate the issue: this happens when there was a forced push on the git server. The client needs to be able to detect this and to abort the build probably? Also, I suspect similar thing may happen if the workspace is not cleanup and there is a forced push on remote git. To prevent a permanent failure of all future jobs we need an option to perform a forced pull when such error occurs — as in a self-repairing local clone.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-46290  
 
 
  Project checkout fails (ERROR: Could not determine exact tip revision of master)   
 

  
 
 
 
 

 
Change By: 
 Sorin Sbarnea  
 
 
Resolution: 
 Incomplete  
 
 
Status: 
 Resolved Reopened  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)