Friday 15 February 2013

cruisecontrol.net - Cruise Control .net git log invalid revision range -



cruisecontrol.net - Cruise Control .net git log invalid revision range -

i've managed mess cruise command projects.

i updating git urls project repositories on continuous integration server when moving new source command host. got bit cutting , paste happy , pasted wrong url repository origin. next time cruise command did pull merged , pulled lot of stuff shouldn't in repository.

once i'd realised mistake, thought not problem, i'll delete offending repository , clone using right url.

except cruise command seems have remembered lastly alter set messed repository , when deciding if needs new build it's throwing hissy fit. that's i'm guessing has happened anyway. when it's issuing git log command it's saying can't find alter set in cleaned respository.

the command it's issuing is:

git log 66cd57438ea42b4f8cb6dbf033dc1162f61a4d54..origin/master --name-status --pretty=format:"commit:%h%ntime:%ci%nauthor:%an%ne-mail:%ae%nmessage:%s%n%n%b%nchanges:" -m

git's reponse is

source command operation failed: fatal: invalid revision range 66cd57438ea42b4f8cb6dbf033dc1162f61d5e65..origin/master

the changeset id doesn't exist in right repository exist in repository incorrectly merged.

how cruise command .net forget duff changeset id?

cruisecontrol.net stores id of lastly commit in per-project state file. these text files reside in server directory (c:\program files (x86)\cruisecontrol.net\server)

e.g. state file contain:

<integrationresult xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema" scmerror="false"> <projectname>project1</projectname> ... <label>1.2.3.4</label> <parameters> ... <namevaluepair name="$lastchangenumber" value="66cd57438ea42b4f8cb6dbf033dc1162f61a4d54" /> </parameters> <lastsuccessfulintegrationlabel>1.2.3.4</lastsuccessfulintegrationlabel> <sourcecontrol name="commit" value="66cd57438ea42b4f8cb6dbf033dc1162f61a4d54" /> </integrationresult>

you can modify file contain commit id thats relevant right repository; must stop cruisecontrol first. restart server/service 1 time they've been changed , should good.

the line needs changing is:

<sourcecontrol name="commit" value="66cd57438ea42b4f8cb6dbf033dc1162f61a4d54" />

the other properties can left is; they're properties of lastly build.

git cruisecontrol.net

No comments:

Post a Comment