|
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
current |
Assignee:
|
Nicolas De Loof
|
Components:
|
git |
Created:
|
17/Dec/12 10:36 PM
|
Description:
|
I'm used to have parameterized builds with a string parameter 'branch' and using "$branch" inside Git's "Branches to build" configuration, like:
This used to work fine but nowadays fails.
Running Jenkins under -Dhudson.plugins.git.GitSCM.verbose=true I notice that the "$branch" variable just doesn't get replaced any longer:
Building in workspace /var/lib/jenkins/jobs/zsh-source/workspace
Checkout:workspace / /var/lib/jenkins/jobs/zsh-source/workspace - hudson.remoting.LocalChannel@25f3b536
Using strategy: Default
[source] $ git rev-parse --verify HEAD
Fetching changes from 1 remote Git repository
Fetching upstream changes from git://git.debian.org/collab-maint/zsh.git
[source] $ git fetch -t git://git.debian.org/collab-maint/zsh.git +refs/heads/*:refs/remotes/origin/*
getCandidateRevisions(false,$branch,,,,remoteUrls=[git://git.debian.org/collab-maint/zsh.git],buildsByBranchName={},lastBuild=null]) considering branches to build
[source] $ git tag -l $branch
Qualifying $branch as a branch in repository origin -> origin/$branch
[source] $ git rev-parse origin/$branch^{commit}
Failed to rev-parse: origin/$branch
No candidate revisions
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
I'm using Jenkins 1.494 and Git Plugin 1.1.26 but can reproduce this issue also with older Jenkins version and Git Plugin 1.1.25, the issue seems to be present since several Jenkins version and Git Plugin versions though.
|
Project:
|
Jenkins
|
Priority:
|
Major
|
Reporter:
|
Michael Prokop
|
|
|
|
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
|
- [JIRA] (JENKINS-16153) Branch sett... jenkins-ci....@michael-prokop.at (JIRA)
-