Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

runJobByCron(silFile, args, cronExpr)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Runs the job according to the specified cron schedule.

Runs the job according to the specified cron schedule.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

silFile

String

Yes

The sil file name.

args

array string

Yes

The list of the arguments of the job.

cronExpr

String

Yes

The cron expression

Return Type

None

The returned value has no meaning.

Example

This SIL script will create a job that will run the script "script.sil" at 12pm (noon) every day.

Code Block
languagejs
runJobByCron("script.sil", {project, key}, "0 0 12 * * ?");

In "script.sil" you can access the args using the next syntax:

Code Block
languagejs
string issueKey = argv[1];

Note

You can find more details about using the cron expression according to the used API at www.quartz-scheduler.org/documentation/quartz-1.x/tutorials/crontrigger

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "schedule_routine" and space = currentSpace ( )
labelsarray_routines