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

Article ID:360033193531
1 minute readKnowledge base

Summary

emake displays this error message if it is invoked in local mode , but the --emake-annofile command-line option is set.

Description

When running a build locally, without the use of Accelerator 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 (ie, emake is not using Accelerator 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.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.