EC1021

1 minute readReference

Synopsis

ERROR EC1021: Local mode does not support setting an annotation file name.

Description

When running a build locally, without the use of CloudBees Build Acceleration agents, eMake is not able to write annotation to a named file. Instead, annotation is written to the standard output stream of the eMake process.

Reasons

The user has specified --emake-annofile when invoking eMake in local mode (that is, eMake is not using CloudBees Build Acceleration agents). This error most commonly occurs when the user has forgotten to specify a cluster manager when invoking eMake, with either the EMAKE_CM environment variable or the --emake-cm command-line option.

Fixes

If you intended to invoke eMake in local mode, you must remove the --emake-annofile option from the command-line. If you wish to capture the annotation to a file, you can use the standard I/O redirection facilities on your platform to do so. For example, on Linux you can use

emake --emake-annodetail=basic > emake.xml

If you did not intend to invoke eMake in local mode, ensure that you have specified a cluster manager for eMake to use, either by setting the EMAKE_CM environment variable, or by adding the --emake-cm option to your eMake command-line.