We got a couple of failures (very infrequent, say, once a week) of the following nature:
:upload
Executing task ':upload' (up-to-date check took 0.0 secs) due to:
Task has not declared any outputs.
Starting process 'command 'nuget''. Working directory: C:\Jenkins\jobs\iRePORT-Dev\workspace\build Command: nuget push Nete.Ireport.12.0-Dev2769.nupkg -ApiKey ******** -Source http://***/octopus/nuget/packages
Successfully started process 'command 'nuget''
Pushing Nete.Ireport 12.0-Dev2769 to 'http://***/octopus/nuget/packages'...
Your package was pushed.
Starting process 'command 'octo''. Working directory: C:\Jenkins\jobs\iRePORT-Dev\workspace Command: octo create-release --project=iRePORT --version=12.0-Dev2769 --packageversion=12.0-Dev2769 --server=http://***/octopus/ --apiKey=******** --releaseNotes=Build iRePORT-Dev #2769 (http://jenkins-ireport/job/iRePORT-Dev/2769)
Successfully started process 'command 'octo''
Octopus Deploy Command Line Tool, version 3.2.0.97
Handshaking with Octopus server: http://***/octopus/
Handshake successful. Octopus version: 3.2.1; API version: 3.0.0
Authenticated as: DK <***>
Finding project: iRePORT
Finding deployment process for project: iRePORT
Finding release template...
Using version number provided on command-line.
Release plan for release: 12.0-Dev2769
Steps:
# Name Version Source
--- ------------------------------ --------------- ------------------------------------
1 Configure and Deploy Package 12.0-Dev2769 User specified
Creating release...
Error from Octopus server (HTTP 500): Octopus Server returned an error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Server exception:
System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
at System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestType request, String transactionName, TransactionManagerIsolationLevel isoLevel, Int32 timeout, SqlInternalTransaction transaction, TdsParserStateObject stateObj, Boolean isDelegateControlRequest)
at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest transactionRequest, String transactionName, IsolationLevel iso, SqlInternalTransaction internalTransaction, Boolean isDelegateControlRequest)
at System.Data.SqlClient.SqlInternalTransaction.Commit()
at System.Data.SqlClient.SqlTransaction.Commit()
at Octopus.Server.Web.Infrastructure.Api.CreateResponseDescriptor`2.Responder.Execute() in Y:\work\refs\tags\3.2.1\source\Octopus.Server\Web\Infrastructure\Api\CreateResponseDescriptor.cs:line 91
at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context) in Y:\work\refs\tags\3.2.1\source\Octopus.Server\Web\Infrastructure\Api\Responder.cs:line 162
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at CallSite.Target(Closure , CallSite , Object , Object , NancyContext )
at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass0_0.<.ctor>b__0(Object o) in Y:\work\refs\tags\3.2.1\source\Octopus.Server\Web\Api\OctopusRestApiModule.cs:line 46
at CallSite.Target(Closure , CallSite , Func`2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)
ClientConnectionId:1b98f4ff-d4e3-40eb-bff8-830c7f6ba632
Error Number:-2,State:0,Class:11
-----------------------
Exit code: -7
:upload FAILED
:upload (Thread[main,5,main]) completed. Took 23.613 secs.
As you can see, create-release
fails pretty fast (less than 24s), so I guess it must be not related to the default 10 minute query timeout in SQL Server (https://msdn.microsoft.com/en-us/library/ms189040(v=sql.120).aspx).