Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

pivotaltracker/cron-resource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crontab Resource

Implements a resource that reports new versions when the current time matches the crontab expression

Add to your Concourse deployment

There is a BOSH release that can be added alongside your Concourse deployment. You can find the BOSH release at here.

Source Configuration

  • expression: Required. The crontab expression:

    field allowed values
    minute 0-59
    hour 0-23
    day of month 1-31
    month 1-12 (or names, see below)
    day of week 0-7 (0 or 7 is Sun, or use names)

    e.g.

    0 23 * * 1-5 # Run at 11:00pm from Monday to Friday

  • location: Optional. Defaults to UTC. Accepts any timezone that can be parsed by https://godoc.org/time#LoadLocation

    e.g.

    America/New_York

    America/Vancouver

Behavior

check: Report the current time.

Returns time.Now() as the version only if a minute since we last fired matches the crontab expression. The first time the script runs it will fire if a minute in the last hour matches the crontab expression.

Parameters

None.

in: Report the given time

If triggered by check, returns the original version as the resulting version.

Parameters

  1. Output directory. The directory where the in script will store the requested version

out: Not implemented.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%