Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363607 - Manual hudson build from git repo fails with "Nothing to do"
Summary: Manual hudson build from git repo fails with "Nothing to do"
Status: ASSIGNED
Alias: None
Product: Hudson
Classification: Technology
Component: GIT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Christou CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 373185
  Show dependency tree
 
Reported: 2011-11-11 13:31 EST by Greg Watson CLA
Modified: 2016-08-30 02:36 EDT (History)
14 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson CLA 2011-11-11 13:31:26 EST
I'm building from a git repo using maven. After a commit has been pushed to the repo, a manual build works fine. However if the repo has not changed since the last build, the build fails and there is a cryptic "Nothing to do" message. There needs to be a way to force a build, even if there is no change to the repo.

Here is the console output:

Started by user gwatson
Building remotely on hudson-slave1
Checkout:ptp-release / /opt/users/hudsonbuild/workspace/ptp-release - hudson.remoting.Channel@6e6b27a2:hudson-slave1
Using strategy: Default
Last Built Revision: Revision 3e5a6ab9bbd03d6e12ea88e9cf4d3bb30a4af82e (origin1/ptp_5_0)
Checkout:ptp-release / /opt/users/hudsonbuild/workspace/ptp-release - hudson.remoting.LocalChannel@8859e4
Fetching changes from the remote Git repository
Fetching upstream changes from git://git.eclipse.org/gitroot/ptp/org.eclipse.ptp.git
Seen branch in repository origin1/master
Seen branch in repository origin1/ptp_1_0
Seen branch in repository origin1/ptp_1_1
Seen branch in repository origin1/ptp_2_0
Seen branch in repository origin1/ptp_2_1
Seen branch in repository origin1/ptp_3_0
Seen branch in repository origin1/ptp_4_0
Seen branch in repository origin1/ptp_4_1
Seen branch in repository origin1/ptp_5_0
Nothing to do
Checkout:photran / /opt/users/hudsonbuild/workspace/ptp-release/photran - hudson.remoting.LocalChannel@8859e4
Fetching changes from the remote Git repository
Fetching upstream changes from git://git.eclipse.org/gitroot/ptp/org.eclipse.photran.git
Seen branch in repository origin/master
Seen branch in repository origin/photran_4_0
Seen branch in repository origin/photran_5_0
Seen branch in repository origin/ptp_4_0
Seen branch in repository origin/ptp_4_1
Seen branch in repository origin/ptp_5_0
Nothing to do
Archiving artifacts
Sending e-mails to: g.watson@computer.org
[DEBUG] Skipping watched dependency update for build: ptp-release #54 due to result: FAILURE
Finished: FAILURE
Comment 1 Dennis Huebner CLA 2012-02-20 04:50:36 EST
I have exactly the same problem.
After I set up my job to checkout two git repositories I can't build if there are any changes.
So if the build is triggered by SCM all works fine if I trigger my build manually (e.g. for integration builds) build fails after the "Nothing to do" message.

Started by user dhubner
Building remotely on hudson-slave1
Checkout:Xtext-nightly-HEAD / /opt/users/hudsonbuild/workspace/Xtext-nightly-HEAD - hudson.remoting.Channel@22697409:hudson-slave1
Using strategy: Default
Last Built Revision: Revision 4805a48eb93dff22836ae54c8d1878e8de022343 (origin/master)
Checkout:org.eclipse.xtend.git / /opt/users/hudsonbuild/workspace/Xtext-nightly-HEAD/org.eclipse.xtend.git - hudson.remoting.LocalChannel@1df3b8bc
Pruning obsolete local branches
Fetching changes from the remote Git repository
Fetching upstream changes from /gitroot/xtend/org.eclipse.xtend.git
Seen branch in repository origin1/master
Nothing to do
Checkout:org.eclipse.xtext.git / /opt/users/hudsonbuild/workspace/Xtext-nightly-HEAD/org.eclipse.xtext.git - hudson.remoting.LocalChannel@1df3b8bc
Pruning obsolete local branches
Fetching changes from the remote Git repository
Fetching upstream changes from /gitroot/tmf/org.eclipse.xtext.git
Seen branch in repository origin/2.1.x_Maintenance
Seen branch in repository origin/Helios_Maintenance
Seen branch in repository origin/master
Seen branch in repository origin/playground
Seen branch in repository origin/releng
Nothing to do
Recording fingerprints
Archiving artifacts
Sending e-mails to: dennis.huebner@itemis.de
[DEBUG] Skipping watched dependency update for build: Xtext-nightly-HEAD #2134 due to result: FAILURE
Finished: FAILURE

Any progress/thoughts on this?
Comment 2 Steffen Pingel CLA 2012-03-03 13:50:21 EST
This is a pretty major limitation of the Git integration. Does anyone have pointers where to start looking in order to fix this?
Comment 3 Winston Prakash CLA 2012-03-05 11:12:35 EST
Steven could you take a look at this. If I'm correct this was reported earlier and was fixed. Need to find out which version the fix was in
Comment 4 Steve Christou CLA 2012-03-06 16:47:37 EST
This issue has been fix as part of commit: https://github.com/hudson-plugins/git-plugin/commit/d53e85ae3002597c3ce10eafd8693ca106dfcd1f

I believe we need to release a new version of the git plugin to include these changes.
Comment 5 Gunnar Wagenknecht CLA 2013-07-11 11:37:35 EDT
(In reply to comment #4)
> This issue has been fix as part of commit:
> https://github.com/hudson-plugins/git-plugin/commit/
> d53e85ae3002597c3ce10eafd8693ca106dfcd1f
> 
> I believe we need to release a new version of the git plugin to include
> these changes.

Has a new version of the Git plug-in been released? 

I'm still seeing this on Eclipse.org Hudson. (cc Webmaster). If a new release is available I think it should be updated at the Eclipse.org Hudson.
Comment 6 Alex Panchenko CLA 2014-06-12 03:23:58 EDT
Still happens at hudson.eclipse.org :(
Comment 7 Ivan Inozemtsev CLA 2014-12-04 03:59:28 EST
Seeing this issue too. Looks like it affects only when branch names contain slashes
Comment 8 Nimi Sukumaran CLA 2014-12-08 10:01:14 EST
I had faced the same problem .

I was getting "Nothing to do failure" when I configure the branch name with a slash 

Now I configured the branch specifier as origin/branch_name with slash and it worked.
Comment 9 Lidia Marchioni CLA 2015-02-25 18:56:36 EST
Facing the same issue, branch name contains slashes.
Comment 10 Lidia Marchioni CLA 2015-02-25 19:01:50 EST
Using origin/<branch-name> in Branch Specifier field did NOT help.  This is Hudson 3.2.2 and git plugin version 2.2.9.
Comment 11 Nimi Sukumaran CLA 2015-02-26 05:21:16 EST
@Lidia(In reply to Lidia Marchioni from comment #10)
> Using origin/<branch-name> in Branch Specifier field did NOT help.  This is
> Hudson 3.2.2 and git plugin version 2.2.9.

Hi Lidia : can you please paste the entire error log here?
Comment 12 mahesh podapati CLA 2016-08-30 02:36:50 EDT
Skipping watched dependency update for build:          #900 due to result: FAILURE        


This is the error in Hudson Dashboard 3.1.2 ,i am using Git ,please give to me   step by step Answer