Issue Type: Bug Bug
Assignee: Nicolas De Loof
Components: git, pollscm
Created: 29/Mar/13 4:10 PM
Description:

I have a single job configured to build all branches of a git repo and poll for changes, and I have been experiencing a bug with build triggering.

Steps to reproduce

  1. Create a new repo locally and run these in the repo:
    touch somefile.txt
    git commit -m "Add a file" somefile.txt
  2. Create a new repo on github
  3. Create a Jenkins job with this configuration:
    • Set 'Repository URL' to the new github repo
    • Set 'Branches to build' to '**'
    • Check 'Prune remote branches before build', 'Skip internal tag', 'Clean after checkout', 'Recursively update submodules', 'Wipe out workspace before build'
    • Check 'Poll SCM'
    • Set 'Schedule' to '* * * * *'
  4. Push the master branch of your local repo to github
  5. Add the following shell script as a build step:
    echo $GIT_BRANCH
  6. Wait for Jenkins build (build #1)
  7. Run these in your local repo:
    git checkout -b feature master
    echo stuff > somefile.txt
    git commit -m "Some changes" somefile.txt
    git push origin feature
  8. Wait for Jenkins build (build #2)
  9. Run these in your local repo:
    git checkout master
    git merge feature
    git push origin master


What happens

After step 6, build #1 prints 'origin/master'. After step 8, build #2 prints 'origin/feature'. After step 9, nothing happens in Jenkins.

What should happen

Builds #1 and #2 are fine. There should be a build #3 after step 9 which prints 'origin/master'.

Project: Jenkins
Priority: Major Major
Reporter: nriffe
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to