Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Cron Schedule #12

zaara ·

cron schedule

Can we write a script inside the Cron schedule tab in general settings in configuraton in quickbuild.
Have written a script but it is not evaluating.
Can some one suggest me as how to write script inside schedule.
for example:---
${groovy:
import java.util.*;
import com.pmease.quickbuild.Context;
import com.pmease.quickbuild.model.Build;
import com.pmease.quickbuild.model.Configuration;
import java.text.SimpleDateFormat;

def N = 1;

if(N==1)
{
return "0 0 1 * JUN-SEP ? 2018"
}}

  • replies 1
  • views 512
  • stars 0
robinshen ADMIN ·

The character "}" should be escaped as "}" in the enclosed script:

${groovy:
import java.util.*;
import com.pmease.quickbuild.Context;
import com.pmease.quickbuild.model.Build;
import com.pmease.quickbuild.model.Configuration;
import java.text.SimpleDateFormat;

def N = 1;

if(N==1)
{
return "0 0 1 * JUN-SEP ? 2018"
\}
}