[JIRA] [git] (JENKINS-23450) Initial checkout doesn't create directory listed in Check out to a sub-directory

2014-07-24 Thread derek...@gmail.com (JIRA)














































Derek Douville
 commented on  JENKINS-23450


Initial checkout doesnt create directory listed in Check out to a sub-directory















I figured out now that to get $GIT_BRANCH recognized in the subdirectory field, you can NOT use { } (that is,  ${GIT_BRANCH} will fail, but $GIT_BRANCH succeeds).  Thus, now, we are able to checkout to a subdirectory in the workspace at  $GIT_BRANCH/src and then in the build script, cd into $WORKSPACE/GIT_BRANCH/src and go ahead and build.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
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] [git] (JENKINS-23450) Initial checkout doesn't create directory listed in Check out to a sub-directory

2014-07-16 Thread derek...@gmail.com (JIRA)














































Derek Douville
 commented on  JENKINS-23450


Initial checkout doesnt create directory listed in Check out to a sub-directory















Before I upgraded my github plugin yesterday, checking out to a subdir of ${GIT_BRANCH}/src was working.  After upgrading, this fails. Even worse, since the build script does a "cd ${GIT_BRANCH}/src" and succeeds for projects that were building before the upgrade, it means we're building old source code. 

New jobs that have never been built fail with the error posted in the bug description on the first run. Checkouts seem to succeed later because literally in ~jenkins/jobs/job/workspace a directory called "${GIT_BRANCH}" has been created.

So now, using $GIT_BRANCH is impossible for sub-directories.  This is a more serious bug to me, I don't have a work around because we build multiple branches in the same workspace.

Help!



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
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] [git] (JENKINS-23450) Initial checkout doesn't create directory listed in Check out to a sub-directory

2014-06-30 Thread jpotter-jenkins-ci....@codepuppy.com (JIRA)














































j potter
 commented on  JENKINS-23450


Initial checkout doesnt create directory listed in Check out to a sub-directory















That might be possible  we're seeing something odd with multi-branch builds, too  it seems like GIT_BRANCH always lags behind one build on what its value is.

That is, starting out, if we push to branch A, Jenkins builds branch A, then if we push to branch B, Jenkins builds A, then if we push to B, it'll build B. Hmm, how to write this? If our push sequence is A B B B A B, Jenkins will build A A B B B A  essentially it's seeing the prior build's value of GIT_BRANCH. Something like this.

We evaluated switching away from Jenkins to Atlassian's Bamboo because of this issue, but they don't have the ability to integrate with Github triggers for building branches correctly (just polling), so back to Jenkins and manually fixing this (which is annoying  writing a job that accepts the trigger and then makes API calls to Jenkins to add the branches as new jobs).

-Jeff



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
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] [git] (JENKINS-23450) Initial checkout doesn't create directory listed in Check out to a sub-directory

2014-06-30 Thread mark.earl.wa...@gmail.com (JIRA)














































Mark Waite
 commented on  JENKINS-23450


Initial checkout doesnt create directory listed in Check out to a sub-directory















If you were willing to consider a switch to Atlassian Bamboo, then you could probably also consider upgrading to the Cloudbees supported version of Jenkins.  The lead maintainer of the git plugin is a Cloudbees employee, so you could probably get a fix for the issue if you were a Cloudbees customer.

I'm not a Cloudbees employee, just aware that they provide a purchased and supported version of Jenkins in addition to contributing many of their development efforts to the open source version.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
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] [git] (JENKINS-23450) Initial checkout doesn't create directory listed in Check out to a sub-directory

2014-06-28 Thread mark.earl.wa...@gmail.com (JIRA)














































Mark Waite
 commented on  JENKINS-23450


Initial checkout doesnt create directory listed in Check out to a sub-directory















Just a guess, but I suspect that the value of ${GIT_BRANCH} is not set at the time when the subdirectory for checkout is evaluated.



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
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] [git] (JENKINS-23450) Initial checkout doesn't create directory listed in Check out to a sub-directory

2014-06-16 Thread jpotter-jenkins-ci....@codepuppy.com (JIRA)














































j potter
 created  JENKINS-23450


Initial checkout doesnt create directory listed in Check out to a sub-directory















Issue Type:


Bug



Assignee:


Nicolas De Loof



Components:


git



Created:


16/Jun/14 5:36 PM



Description:


We have the local subdirectory for repo defined as "${GIT_BRANCH}"  this creates a different subdirectory for every branch being built, allowing us to cache a lot of build objects between builds while keeping separate branches, well, separated.

However, the very first trigger of the build for any given branch fails. It's fine after that; as in, works fine after a second push to our git repo (which then hits Jenkins via github's webhook API).

Any thoughts as to what's causing this?

Thanks!
-Jeff




Project:


Jenkins



Priority:


Minor



Reporter:


j potter

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
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.