Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed build xml mapper to correctly get the user. Fixed http response…
… timeout retry.
- Loading branch information
1 parent
d4da690
commit 234dbe1
Showing
14 changed files
with
213 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
#ignore thumbnails created by windows | ||
Thumbs.db | ||
#Ignore files build by Visual Studio | ||
*.obj | ||
*.exe | ||
*.pdb | ||
*.user | ||
*.aps | ||
*.pch | ||
*.vspscc | ||
*_i.c | ||
*_p.c | ||
*.ncb | ||
*.suo | ||
*.tlb | ||
*.tlh | ||
*.bak | ||
*.cache | ||
*.ilk | ||
*.log | ||
[Bb]in | ||
[Dd]ebug*/ | ||
*.lib | ||
*.sbr | ||
obj/ | ||
[Rr]elease*/ | ||
_ReSharper*/ | ||
[Tt]est[Rr]esult* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Threading; | ||
|
||
namespace Hudson.Services | ||
{ | ||
public static class Retry | ||
{ | ||
public static T This<T>(Func<T> action, int numRetries, int retryTimeout) | ||
{ | ||
if (action == null) | ||
{ | ||
throw new ArgumentNullException("action"); | ||
} | ||
|
||
do | ||
{ | ||
try | ||
{ | ||
return action.Invoke(); | ||
} | ||
catch | ||
{ | ||
if (numRetries <= 0) throw; // improved to avoid silent failure | ||
|
||
Thread.Sleep(retryTimeout); | ||
} | ||
} | ||
while (numRetries-- > 0); | ||
|
||
return default(T); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,69 @@ | ||
<freeStyleBuild> | ||
<action> | ||
<cause> | ||
<shortDescription>Started by user</shortDescription> | ||
</cause> | ||
</action> | ||
<action></action> | ||
<building>true</building> | ||
<duration>28204</duration> | ||
<fullDisplayName>first-job #92</fullDisplayName> | ||
<keepLog>false</keepLog> | ||
<number>92</number> | ||
<result>SUCCESS</result> | ||
<timestamp>1245606576953</timestamp> | ||
<url>http://www.example.com/job/first-job/92/</url> | ||
<builtOn></builtOn> | ||
<changeSet> | ||
<item> | ||
<date>2009-06-21</date> | ||
<msg>Changed account.</msg> | ||
<path> | ||
<editType>edit</editType> | ||
<file>/Source/File.cs</file> | ||
</path> | ||
<revision>119</revision> | ||
<user>user</user> | ||
</item> | ||
<kind>svn</kind> | ||
<revision> | ||
<module>svn://www.example.com/respository</module> | ||
<revision>119</revision> | ||
</revision> | ||
</changeSet> | ||
<culprit> | ||
<absoluteUrl>http://www.example.com/user/user</absoluteUrl> | ||
<fullName>user</fullName> | ||
</culprit> | ||
</freeStyleBuild> | ||
<freeStyleBuild> | ||
<action> | ||
<cause> | ||
<shortDescription>Started by an SCM change</shortDescription> | ||
</cause> | ||
</action> | ||
<action></action> | ||
<action> | ||
<buildsByBranchName> | ||
<originmaster> | ||
<buildNumber>1124</buildNumber> | ||
<revision> | ||
<SHA1>fa8825becade7adf64212e2395460d290e201d08</SHA1> | ||
<branch> | ||
<SHA1>fa8825becade7adf64212e2395460d290e201d08</SHA1> | ||
<name>origin/HEAD</name> | ||
</branch> | ||
<branch> | ||
<SHA1>fa8825becade7adf64212e2395460d290e201d08</SHA1> | ||
<name>origin/master</name> | ||
</branch> | ||
</revision> | ||
</originmaster> | ||
</buildsByBranchName> | ||
<lastBuiltRevision> | ||
<SHA1>fa8825becade7adf64212e2395460d290e201d08</SHA1> | ||
<branch> | ||
<SHA1>fa8825becade7adf64212e2395460d290e201d08</SHA1> | ||
<name>origin/HEAD</name> | ||
</branch> | ||
<branch> | ||
<SHA1>fa8825becade7adf64212e2395460d290e201d08</SHA1> | ||
<name>origin/master</name> | ||
</branch> | ||
</lastBuiltRevision> | ||
<scmName></scmName> | ||
</action> | ||
<action></action> | ||
<building>true</building> | ||
<duration>811570</duration> | ||
<fullDisplayName>first-job #92</fullDisplayName> | ||
<id>2012-02-20_17-00-00</id> | ||
<keepLog>false</keepLog> | ||
<number>1124</number> | ||
<result>SUCCESS</result> | ||
<timestamp>1329757779000</timestamp> | ||
<url>http://www.example.com/job/first-job/92/</url> | ||
<builtOn></builtOn> | ||
<changeSet> | ||
<item> | ||
<author> | ||
<absoluteUrl>http://www.example.com:3333/user/test.user</absoluteUrl> | ||
<fullName>test.user</fullName> | ||
</author> | ||
<comment>Fixed stuff.</comment> | ||
<date>2012-02-20 17:00:00 +0000</date> | ||
<id>d7da709252cbeff92c7992a4ca89908b6f68bbe1</id> | ||
<msg>Fixed stuff.</msg> | ||
<path> | ||
<editType>edit</editType> | ||
<file>Source/File.cs</file> | ||
</path> | ||
</item> | ||
</changeSet> | ||
<culprit> | ||
<absoluteUrl>http://www.example.com:3333/user/other.guy</absoluteUrl> | ||
<fullName>other.guy</fullName> | ||
</culprit> | ||
</freeStyleBuild> |
Oops, something went wrong.