ChangelistSummary summary = new ChangelistSummary(IChangelist.UNKNOWN, client.getName(),
server.getUserName(), ChangelistStatus.NEW, new Date(),
"Artifactory release plugin", false);
IChangelist newChangeList = new Changelist(summary, server, false);
newChangeList = client.createChangelist(newChangeList);
newChangeList.update();
return newChangeList.getId();
} catch (P4JavaException e) {
throw new IOException("Perforce execution failed: '" + e.getMessage() + "'", e);
}
}