Some investigation into the source indicates TFTool.java says:
static final int SUCCESS_EXIT_CODE = 0;
static final int PARTIAL_SUCCESS_EXIT_CODE = 1;

LOGGER.fine(String.format("The TFS command '%s' returned with an error code of %d", toolArguments[1], result));
if ((result == SUCCESS_EXIT_CODE) || (result == PARTIAL_SUCCESS_EXIT_CODE)) { return new InputStreamReader(new ByteArrayInputStream(consoleStream.toByteArray())); } else { listener.fatalError(String.format("Executable returned an unexpected result code [%d]", result)); throw new AbortException(); }

TF result codes (http://msdn.microsoft.com/en-us/library/cc31bk2e.aspx#exit_codes) show:

0 Success.
1 Partial success; this means at least something, or possibly everything, failed to succeed.
2 Unrecognized command.
100 Nothing succeeded.

Only Exit "0" should be treated as SUCCESS. All else are Exceptions

Change By: Ian Williams (20/Jan/15 6:17 AM)
Description:
Source Code Mangement option from Team Foundation Server:
Logs report:
---- Summary: 0 conflicts, 0 warnings, 1 errors ----
Local path /build/workspace/BillPay/TEST_jenkins_wps_build_tfserr/wps-ws/paymentdeviceadminsvc-1-1-war-deploy/paymentdeviceadminsvc-1-1-service/src/main/java/com/telus/wsdl/eo/financialmgmt/paymentdeviceadminservice_1/PaymentDeviceAdminService_v1_1_PaymentDeviceAdminServicePortImpl.java is too long.  The item will not be retrieved

From the command line:
[/build/workspace/BillPay/TEST_jenkins_wps_build_tfserr]
[bldadm]$  tf get . -recursive -version:D2015-01-16T23:07:14Z -noprompt
Local path /build/workspace/BillPay/TEST_jenkins_wps_build_tfserr/wps-ws/paymentdeviceadminsvc-1-1-war-deploy/paymentdeviceadminsvc-1-1-service/src/main/java/com/corp/wsdl/eo/financialmgmt/paymentdeviceadminservice_1/PaymentDeviceAdminService_v1_1_PaymentDeviceAdminServicePortImpl.java is too long.  The item will not be retrieved
[/build/workspace/BillPay/TEST_jenkins_wps_build_tfserr]
[bldadm]$ echo $?
1

Plugin is not raising the exception and causing the build to fail. The actual TFS file path ( $/ ... .java ) is 240 chars
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to