Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.slaves.WorkspaceList;
import jenkins.util.SystemProperties;

public class ConfigFileManager {
private final static Logger LOGGER = Logger.getLogger(ConfigFileManager.class.getName());
private final static boolean isVerbose = SystemProperties.getBoolean(ConfigFileManager.class.getName() + ".CFP_IS_VERBOSE", true);

/**
* Provisions (publishes) the given file to the workspace.
Expand Down Expand Up @@ -122,7 +124,9 @@
}

LOGGER.log(Level.FINE, "Create file {0} for configuration {1} mapped as {2}", new Object[]{target.getRemote(), config, configFile});
listener.getLogger().println(Messages.console_output(config.name, target.toURI()));
if (isVerbose) {

Check warning on line 127 in src/main/java/org/jenkinsci/lib/configprovider/model/ConfigFileManager.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 127 is only partially covered, one branch is missing
listener.getLogger().println(Messages.console_output(config.name, target.toURI()));
}
// check if empty file
if (fileContent != null) {
ByteArrayInputStream bs = new ByteArrayInputStream(fileContent.getBytes("UTF-8"));
Expand Down