{
getLogger().info(
"Attempting to checkpoint project associated with sandbox " + fileSet.getBasedir().getAbsolutePath() );
TagScmResult result;
String message = scmTagParameters.getMessage();
IntegrityScmProviderRepository iRepo = (IntegrityScmProviderRepository) repository;
try
{
// First validate the checkpoint label string by evaluating the groovy script
String chkptLabel = evalGroovyExpression( tagName );
Project.validateTag( chkptLabel );
String msg = ( ( null == message || message.length() == 0 ) ? System.getProperty( "message" ) : message );
// Get information about the Project
Project siProject = iRepo.getProject();
// Ensure this is not a build project configuration
if ( !siProject.isBuild() )
{
Response res = siProject.checkpoint( msg, chkptLabel );
int exitCode = res.getExitCode();