limit steps by cron name, #2628

This commit is contained in:
Brad Rydzewski 2019-04-13 12:50:43 -07:00
parent e855881324
commit 4ad4402675
4 changed files with 6 additions and 2 deletions

View file

@ -12,7 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- update drone-runtime to version 1.0.5.
- support for Gitea oauth2, by [@techknowlogick](https://github.com/techknowlogick). [#2622](https://github.com/drone/drone/pull/2622).
- ping the docker daemon before starting the agent, by [@bradrydzewski](https://github.com/bradrydzewski). [#2495](https://github.com/drone/drone/issues/2495).
- filter pipelines by cron job name, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
- support for Cron job name in Yaml trigger block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
- support for Cron job name in Yaml when block, by [@bradrydzewski](https://github.com/bradrydzewski). [#2628](https://github.com/drone/drone/issues/2628).
## [1.0.1] - 2019-04-10
### Added

2
go.mod
View file

@ -18,7 +18,7 @@ require (
github.com/drone/drone-go v0.0.0-20190217024616-3e8b71333e59
github.com/drone/drone-runtime v1.0.6
github.com/drone/drone-ui v0.0.0-20190318215801-d6c3d11a1c3f
github.com/drone/drone-yaml v1.0.7
github.com/drone/drone-yaml v1.0.8
github.com/drone/envsubst v1.0.1
github.com/drone/go-license v1.0.2
github.com/drone/go-login v1.0.4-0.20190311170324-2a4df4f242a2

2
go.sum
View file

@ -55,6 +55,8 @@ github.com/drone/drone-yaml v1.0.6 h1:fsuxVXgoxTM9fdQEydEkqHzUgMYKH8M//sqOx4UxsU
github.com/drone/drone-yaml v1.0.6/go.mod h1:eM365p3g9M5sroFBTR/najiGrZnd/GiIpWHC2UW8PoI=
github.com/drone/drone-yaml v1.0.7 h1:qHUI1HA5v3dOCzHfmvPRQTEXbCx8vnaqwHSStbZO/50=
github.com/drone/drone-yaml v1.0.7/go.mod h1:1yrotgyD94qoYwgWWm71vAMbcw7Zd3gDersjeT9lYAk=
github.com/drone/drone-yaml v1.0.8 h1:Jrnd/yC9LbMx/sMkbZcvSCKxWgMWnMaFa6HgjtpA1Vg=
github.com/drone/drone-yaml v1.0.8/go.mod h1:1yrotgyD94qoYwgWWm71vAMbcw7Zd3gDersjeT9lYAk=
github.com/drone/envsubst v1.0.1 h1:NOOStingM2sbBwsIUeQkKUz8ShwCUzmqMxWrpXItfPE=
github.com/drone/envsubst v1.0.1/go.mod h1:bkZbnc/2vh1M12Ecn7EYScpI4YGYU0etwLJICOWi8Z0=
github.com/drone/go-license v1.0.2 h1:7OwndfYk+Lp/cGHkxe4HUn/Ysrrw3WYH2pnd99yrkok=

View file

@ -259,6 +259,7 @@ func (r *Runner) Run(ctx context.Context, id int64) error {
comp.SkipFunc = compiler.SkipFunc(
compiler.SkipData{
Branch: m.Build.Target,
Cron: m.Build.Cron,
Event: m.Build.Event,
Instance: m.System.Host,
Ref: m.Build.Ref,